Checking access…

Skip to main content
Version: v2
Audience: Consumers, CCG Platform Engineers

Retry Mechanisms — Settings, Webhook & Error Reference

When to use this page

Looking up exactly which session mode/payment method combination triggers a webhook, is retriable, or invalidates the session. For how retry logic works conceptually, see Retry Mechanisms — Overview.

Error Classification and Webhook Behavior​

This table outlines various settings and behaviors related to retry logic, including retry rules configuration, and system settings for retry logic.

Input Validation ErrorsBusiness Rules Validation ErrorsErrors from Stripe
Is it counted as retriable error for cards?NoNAYes
Is it counted as retriable error for ACH?NoYesNo
Is webhook response sent for ACH on failure attempts (less than max count 5)?NoYesNo
Is webhook response sent for ACH for final retry attempt i.e., equal to max count 5?NoYesNo
Is webhook response sent for CARD on failure attempts (less than max count 5)?NoNoNo
Is webhook response sent for CARD for final retry attempt i.e., equal to max count 5?NoNoYes

Error Types — Sample Payloads​

Business Rules Validation Error — occurs when the user enters correct-looking details but the system cannot validate them (e.g., an incorrect routing number triggers an Early Warning Service error):

Early Warning Error for Bank Account
{
"title": "PAYMENT_METHOD_ERROR",
"status": 406,
"detail": "We were unable to validate the bank details you provided using information from Early Warning (EWS), a consumer reporting agency. Please try another payment method or call the Number on the back of your member card for help. EWS does not direct our decisions and cannot explain why a decision made, but you have the right to contact EWS, obtain free information on your account and dispute such information within 60 days at: <br /><br /> Early Warning Services, LLC <br /> Attn: Consumer Services <br /> Address: 16552 N. 90th Street, Scottsdale, AZ 85260 <br /> Phone Number: (800) 745-4210 <br /><br /> https://www.earlywarning.com/consumer-information",
"errorDetails": null
}

Stripe Error — occurs when the system cannot process the payment method details (e.g., a declined card):

Stripe Error for Declined Card
{
"title": "PAYMENT_METHOD_ERROR",
"status": 406,
"detail": "Payment method could not be authorized. Please try a different payment method.",
"errorDetails": {
"code": "card_declined",
"message": "Your card was declined.",
"declineCode": "generic_decline",
"networkAdviceCode": null,
"networkDeclineCode": null
}
}

Sample PAYMENT_FAILED Webhook Payloads​

Sample PAYMENT_FAILED Webhook Event Response: CARD
{
"id": "XXXX-XXXX-XXXX-XXXX",
"searchId": "XXXX-XXXX-XXXX-XXXX",
"payload": {
"id": "XXXX-XXXX-XXXX-XXXX",
"error": {
"code": "card_declined",
"description": "Payment method could not be authorized. Please try a different payment method.",
"errorDetails": {
"code": "card_declined",
"message": "Your card was declined.",
"declineCode": "generic_decline"
}
},
"amount": 100,
"merchantId": "XXXX-XXXX-XXXX-XXXX",
"description": "UI widget payment",
"paymentMethod": {
"card": {
"last4": "0002",
"zipCode": "76575",
"cardBrand": "VISA",
"expiryYear": 2029,
"nameOnCard": "TEST",
"expiryMonth": 10,
"manufacturerCard": false,
"hsaTagged": false
},
"error": {
"code": "card_declined",
"description": "Payment method could not be authorized. Please try a different payment method.",
"errorDetails": {
"code": "card_declined",
"message": "Your card was declined.",
"declineCode": "generic_decline"
}
},
"default": false,
"nickname": "",
"paymentMethodType": "CARD",
"paymentMethodDetails": {
"type": "CARD",
"last4": "0002",
"zipCode": "76575",
"cardBrand": "VISA",
"expiryYear": 2029,
"nameOnCard": "TEST",
"expiryMonth": 10,
"manufacturerCard": false,
"hsaTagged": false
}
},
"paymentDateUtc": "2024-03-22T07:35:54.144051",
"merchantTransactionId": "XXXX-XXXX-XXXX-XXXX"
},
"token": "Bearer XXX",
"eventType": "PAYMENT_FAILED",
"message": "Payment Event",
"source": null,
"sourceMerchant": null
}
Sample PAYMENT_FAILED Webhook Event Response: BANK_ACCOUNT
{
"id": "XXXX-XXXX-XXXX-XXXX",
"searchId": "XXXX-XXXX-XXXX-XXXX",
"payload": {
"id": "XXXX-XXXX-XXXX-XXXX",
"error": {
"code": "avs_verification_failure",
"description": "We were unable to validate the bank details you provided using information from Early Warning (EWS), a consumer reporting agency. Please try another payment method or call the Number on the back of your member card for help. EWS does not direct our decisions and cannot explain why a decision made, but you have the right to contact EWS, obtain free information on your account and dispute such information within 60 days at: <br /><br /> Early Warning Services, LLC <br /> Attn: Consumer Services <br /> Address: 16552 N. 90th Street, Scottsdale, AZ 85260 <br /> Phone Number: (800) 745-4210 <br /><br /> https://www.earlywarning.com/consumer-information"
},
"amount": 100,
"consent": {
"collectionDetails": {
"web": {
"ipAddress": "X.X.X.X",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0"
},
"type": "WEB"
},
"merchantConsentId": "XXXX-XXXX-XXXX-XXXX",
"collectionTimestamp": "2024-03-22T09:59:07.716Z",
"merchantConsentText": "TEST"
},
"merchantId": "XXXX-XXXX-XXXX-XXXX",
"description": "UI widget payment",
"paymentMethod": {
"error": {
"code": "avs_verification_failure",
"description": "We were unable to validate the bank details you provided using information from Early Warning (EWS), a consumer reporting agency. Please try another payment method or call the Number on the back of your member card for help. EWS does not direct our decisions and cannot explain why a decision made, but you have the right to contact EWS, obtain free information on your account and dispute such information within 60 days at: <br /><br /> Early Warning Services, LLC <br /> Attn: Consumer Services <br /> Address: 16552 N. 90th Street, Scottsdale, AZ 85260 <br /> Phone Number: (800) 745-4210 <br /><br /> https://www.earlywarning.com/consumer-information"
},
"default": false,
"nickname": "",
"paymentMethodType": "BANK_ACCOUNT",
"paymentMethodDetails": {
"type": "BANK_ACCOUNT",
"last4": "6575",
"accountType": "checking",
"nameOnAccount": "TEST",
"routingNumber": "100000000",
"accountHolderType": "individual"
}
},
"paymentDateUtc": "2024-03-22T09:59:09.757785",
"merchantTransactionId": "XXXX-XXXX-XXXX-XXXX"
},
"token": "Bearer XXX",
"eventType": "PAYMENT_FAILED",
"message": "Payment Event",
"source": null,
"sourceMerchant": null
}

Session Mode Configuration​

This table outlines the retry rules configuration for different session modes.

* Note: For ACH, the webhook is sent for failure attempts only if the error is a business rules validation error for ACH.
Session ModePayment MethodIs webhook Sent for Failure Attempt?Is Webhook Sent for Final Attempt?Is Session Invalidated?Is Dead-end Error Screen Shown After Failed Final Attempt?Is Wallet Screen Shown After Failed Final Attempt?
PAYMENTCardNoYesYesYesNA
PAYMENTACHYes*YesYesYesNA
PAYMENT_WITH_WALLET (Add payment method)CardNoNoNoNoYes
PAYMENT_WITH_WALLET (Make payment)CardNoYesYesYesNo
PAYMENT_WITH_WALLET (Add payment method)ACHNoNoNoNoYes
PAYMENT_WITH_WALLET (Make payment)ACHNANANANANA
PAYMENT_METHOD_ENTRYCardNoNoYesYesNA
PAYMENT_METHOD_ENTRYACHNoNoYesYesNA