Payment Gateway Errors

Payment gateway API errors occur when gateways return errors during subscription renewal attempts. Understanding and resolving these errors is crucial for maintaining successful subscription renewals.

What Are Gateway API Errors?

Gateway API errors are responses from payment gateways indicating that a charge attempt failed:

  • Declined Cards: Card was declined by issuer
  • Insufficient Funds: Customer account lacks funds
  • Expired Cards: Payment method has expired
  • Invalid Tokens: Saved payment token is no longer valid
  • Gateway Issues: Temporary gateway service problems
  • Configuration Errors: Incorrect gateway settings

Common Error Types

Error TypeDescriptionSolution
Card DeclinedIssuer declined the chargeCustomer needs to contact bank or use different card
Insufficient FundsNot enough money in accountCustomer needs to add funds
Expired CardCard expiration date passedCustomer needs to update card
Invalid CardCard number or details incorrectCustomer needs to verify card details
Error TypeDescriptionSolution
Token ExpiredSaved token no longer validCustomer needs to update payment method
Token InvalidToken doesn’t exist or was deletedRe-save payment method
Token MismatchToken doesn’t match customerVerify customer and token association

Gateway Errors

Error TypeDescriptionSolution
API ErrorGateway API returned errorCheck gateway status, retry later
Rate LimitToo many requestsImplement retry logic with backoff
Service UnavailableGateway temporarily downWait and retry
Authentication FailedAPI keys invalidVerify and update API keys

Identifying API Errors

Admin Notifications

Sublium tracks recent API errors and displays notifications:

  • Error Count: Number of errors in last 24 hours
  • Gateway Name: Which gateway is experiencing errors
  • Error Details: Specific error messages
  • Affected Subscriptions: Subscriptions impacted by errors

Error Logs

  1. Navigate to Settings > Advanced > Logs
  2. Filter by gateway name
  3. Review error messages and timestamps
  4. Look for patterns in errors

Subscription Details

  1. Open affected subscription
  2. Check Payment History section
  3. Review failed payment attempts
  4. See error messages from gateway

Resolving Errors

For Card Declines

Customer Action Required

  • Contact customer about declined payment
  • Ask them to verify card details
  • Suggest contacting their bank

Retry Logic

  • Configure automatic retry schedule
  • Retry failed payments after delay
  • Stop retrying after max attempts

Payment Method Update

  • Send customer update payment method link
  • Use One-Click Card Update if available
  • Guide customer through update process

For Expired Cards

Automatic Detection

  • System detects expired cards
  • Sends notification to customer
  • Provides update link

Customer Update

  • Customer updates card in My Account
  • New token is saved
  • Next renewal uses new card

Reminder System

  • Send reminders before card expires
  • Proactive communication reduces failures

For Token Errors

Re-save Payment Method

  • Customer updates payment method
  • New token is generated
  • Future renewals use new token

Manual Processing

  • Admin processes payment manually
  • New token saved during manual charge
  • Subscription continues normally

For Gateway Errors

Check Gateway Status

  • Visit gateway status page
  • Check for known issues
  • Review gateway documentation

Verify Configuration

  • Check API keys are correct
  • Verify webhook URLs
  • Review gateway settings

Contact Gateway Support

  • Reach out to gateway support
  • Provide error detail

Ready to Transform Your Subscriptions?

Join a growing community of WooCommerce store owners who rely on Sublium to power their recurring revenue.
Sublium WooCommerce subscription plugin support team - expert help and guidance
5 star rating from Sublium WooCommerce subscription plugin customer
Transform WooCommerce subscriptions with Sublium - superior plugin alternative