Fix Claude API Payment

Job ID: 40518185

Budget: ₹1,000 – ₹18,000 INR

My credit-purchase flow for the Claude AI API is breaking right in the middle of payment processing. The card details submit without complaint, yet the transaction never completes and I receive no error response at all—just a silent failure.

I need you to dig into the gateway interaction, pinpoint why the charge is being rejected or dropped, and implement a reliable fix. Clear logging or surfaced error codes must be added so I can see what’s happening if the gateway ever fails again.

Deliverables
• Root-cause report explaining the failure
• Updated code / configuration that lets a user buy credits end-to-end without manual intervention
• Proof of a successful live or test transaction

Acceptance is straightforward: run one purchase through the flow, show it settles correctly, and demonstrate that meaningful errors appear in the logs if something goes wrong in future.