Skip to content
S sufi.my
Back to Projects

Case Study

Payment Transaction Debugging System

Investigated missing financial transactions by tracing logs across distributed systems and backend services.

JavaSpring BootGCP LoggingSQLRazorpay

Overview

A production issue occurred where users reported missing payment confirmations despite successful transactions.

Problem

  • Payment gateway showed success
  • Database had no corresponding record
  • Users could not see their invoice

This created customer trust issues and a high-priority incident.

Investigation

I traced the transaction lifecycle across systems:

  1. Payment Gateway (Razorpay)
  2. Webhook Handler
  3. Backend Service
  4. Database

Using:

  • Google Cloud Logging
  • Transaction ID correlation
  • Timestamp analysis

Root Cause

The webhook was received successfully, but backend processing failed during a database write caused by an intermittent timeout.

Solution

  • Verified logs across services
  • Identified failure point in the processing layer
  • Reprocessed affected transactions safely
  • Added validation checks for missing records

Improvements

  • Introduced better logging visibility
  • Suggested retry mechanisms for failed writes
  • Improved monitoring for transaction consistency

Impact

  • Resolved a critical production issue
  • Restored customer confidence
  • Reduced future incident resolution time