Skip to main content

Overview

Payments fail sometimes. Here’s how to diagnose and fix issues.

Common Decline Reasons

Card Declined

Processing Errors

Validation Errors


Decline Rate Too High?

Normal decline rates: 5-10% If higher, check:

1. Card Quality

2. Fraud Signals

3. Technical Issues


Subscription Payment Failures

Recurring payments need special handling.

Why Subscriptions Fail

Our Retry Logic

We automatically retry failed subscription payments:

Dunning Emails

Automated emails to customers:
  1. Payment failed - Immediate notification
  2. Retry scheduled - Heads up before next attempt
  3. Update card - Link to customer portal
  4. Final warning - Before subscription cancels

Chargebacks & Disputes

Chargeback Process

Timeline

Winning Disputes

Strong evidence includes:

For Digital Products

  • Customer IP address
  • Download/access logs
  • Account activity
  • Device fingerprint

For Subscriptions

  • Sign-up confirmation
  • Usage history
  • Previous successful payments
  • Cancellation policy (agreed to)

Preventing Disputes


Testing Payments

Use test mode to simulate scenarios.

Test Card Numbers

Test Mode Tips

  • Use X-Environment: test header in API calls
  • Use API keys created for the test environment
  • No real money moves
  • Test all scenarios before going live
  • Verify webhooks work correctly

Webhook Issues

Not Receiving Webhooks?

Webhook Signature Invalid?

Debugging Webhooks

  1. Check Dashboard → API & Development → Webhooks
  2. View recent attempts
  3. See request/response details
  4. Resend failed webhooks

Integration Checklist

Before going live:

API Integration

  • Using API keys created for production environment
  • X-Environment: prod header set for live API calls
  • Error handling for all API calls
  • X-Idempotency-Key set on every write you must not duplicate — the SDKs no longer generate one, so pass { idempotencyKey } on the call (or set the header when calling REST directly); without it a retried write executes twice
  • Webhook endpoints configured and tested

Checkout Flow

  • Card form validates input
  • Loading states during processing
  • Clear error messages
  • Success confirmation page

Subscriptions

  • Trial periods configured
  • Proration settings correct
  • Cancellation flow works
  • Customer portal enabled

Error Handling

  • Graceful decline handling
  • Retry logic for network errors
  • Logging for debugging
  • Customer-friendly messages

Getting Help

Self-Service

Contact Support

When contacting us, include:
  • Payment/customer ID
  • Timestamp of issue
  • Error message (exact)
  • Steps to reproduce
  • Expected vs actual behavior
support@waffo.ai

Quick Reference

Decline Code Actions

Response Codes