Failed transactions
Failed transactions occur when a payment or payout request cannot be completed successfully due to banking issues, validation failures, authentication problems, insufficient balance, network interruptions, or processing errors. Merchants should always handle failed transactions gracefully and verify the final transaction status before taking further action. Proper failed transaction handling helps ensure:- Accurate reconciliation
- Better customer experience
- Stable payout workflows
- Duplicate transaction prevention
- Reliable settlement tracking
Common Reasons for Failed Transactions
Transactions may fail due to:- Insufficient wallet balance
- Invalid beneficiary details
- Invalid UPI ID or IFSC code
- Authentication failures
- Expired timestamps
- Banking partner downtime
- Network interruptions
- Duplicate transaction IDs
- Regulatory or compliance checks
Payment Transaction Failures
Payment transactions may fail when:- Customer cancels payment
- Bank declines transaction
- UPI authorization fails
- Payment session expires
- Network interruptions occur
- Payment authentication fails
Example Failed Payment Response
Payout Transaction Failures
Payouts may fail when:- Wallet balance is insufficient
- Beneficiary details are invalid
- Bank rejects transaction
- Banking network is unavailable
- Transaction exceeds limits
- Compliance validation fails
Example Failed Payout Response
Failed Transaction Status Values
Recommended Failed Transaction Workflow
- Receive failed transaction response
- Log transaction details
- Verify transaction status using APIs
- Check webhook notifications
- Notify customer or operations team
- Retry only if applicable
- Reconcile transaction records
Retry Recommendations
Retry transactions only when failures are temporary.Retry Recommended
Retry Not Recommended
Duplicate Transaction Protection
Never retry failed transactions blindly. Before retrying:- Verify transaction status first
- Use unique transaction references
- Check payout/order IDs carefully
- Validate webhook events
Customer Communication Recommendations
For payment failures:- Inform customers clearly
- Allow secure retry flow
- Avoid duplicate debits
- Provide support references
- Notify operations teams
- Validate beneficiary details
- Check wallet balance
- Verify bank responses
Logging Recommendations
Always log:- Transaction IDs
- API request payloads
- API responses
- Webhook payloads
- Retry attempts
- Error messages
- UTR/reference numbers
- Reconciliation
- Audit tracking
- Dispute management
- Technical debugging
Security Recommendations
- Validate all webhook signatures
- Verify transaction status server-side
- Use HTTPS only
- Generate fresh signatures for retries
- Never expose API credentials publicly
Best Practices
- Handle failures gracefully
- Implement retry logic carefully
- Avoid duplicate transactions
- Verify final status using APIs
- Maintain reconciliation systems
- Store transaction audit logs
Important Notes
- Banking failures may take time to finalize
- Some failed payouts may later reverse automatically
- Webhooks may arrive after API responses
- Final transaction confirmation should always happen server-side
