Fallbacks and retries
Which declines Pay.com retries on another settlement account, how to read retry_attempts and retried_attempt.created, and network retry limits.
When an attempt is declined, Pay.com can send the payment to another settlement account before it returns a result. This is a fallback. Every attempt belongs to the same charge or hold, and you receive one final outcome. Pay.com also retries some declines on the same route, for example with 3D Secure after a soft decline.
When Pay.com falls back
Fallbacks are part of your routing rules. Each target of a routing rule can list the decline codes that trigger a fallback and the settlement account to retry on, or use its settlement account's default fallback. You set an account's default fallback in Settings → Settlement Accounts, on the account's Fallback card, as a list of Retry-able Decline Codes and a Fallback Account. See Routing rules.
After a declined attempt, Pay.com takes the next fallback in the list:
- Declines: Pay.com falls back only if the attempt's failure code is in that fallback's list of decline codes. You can add only codes marked Fallbackable in the error codes table.
- Errors: an attempt that ends in a processing error, or receives no response from the processor, moves on to the next fallback regardless of its code.
- No repeats: Pay.com never sends a payment to a settlement account it already tried for that payment, and it skips fallback accounts that are disabled.
- Blocked accounts: if a payment rule scoped to a fallback's settlement account blocks the payment, Pay.com skips that account and records the attempt as declined with the rule's code.
Fallbacks apply to charges, holds, card verifications, and merchant-initiated payments, including payments authenticated with 3D Secure. There's no fixed limit on attempts. The chain ends when an attempt succeeds, when a decline code isn't in the next fallback's list, or when no fallbacks are left.
If a decline makes the card eligible for an account billing updater update, Pay.com stops the fallbacks and handles the update first.
The card.providers and card.retry_providers lists in
GET /v1/merchants/current/payment_method_options
are managed by Pay.com. They list processors, not settlement accounts, and they
don't set which accounts a fallback uses or in what order.
Retry types
Each retried attempt has a type that explains why Pay.com retried it:
type | Why Pay.com retried the attempt |
|---|---|
fallback | It was declined, and a fallback sent the payment to another settlement account. |
soft_decline | The issuer asked for authentication, and the soft decline loop retried it with 3D Secure. |
network_token_fallback | A payment with a network token was declined, and Pay.com retried it with the full card number. See Authorize with network tokens. |
abu | The account billing updater updated the card, and Pay.com retried it with the new details. |
decline_recovery | The last fallback was declined, and decline recovery retried it. This runs only when decline recovery is enabled on your account. |
In the Pay.com dashboard, Activity → Transactions shows the same reasons in the Why this is a retry and Why this was retried columns, and the retried attempts as Retried Attempt rows.
Soft declines and fallbacks
If your account uses the soft decline loop,
payment_method_options.card.request_sca_exemption.soft_decline_loop_positioning
decides how it interacts with fallbacks.
| Value | When the soft decline loop runs |
|---|---|
at_nearest (default) | When the fallbacks stop, on the attempt where they stopped. A soft decline whose code is in the next fallback's list falls back first. |
after_fallbacks | After every fallback declines, on the first soft-declined attempt. Without advanced fallback routing, a soft-declined attempt falls back even when its code isn't in the fallback's list. With advanced fallback routing, it falls back only when a route lists its code, and otherwise the loop runs on it right away. |
For how 3D Secure works with fallback acquirers, see 3D Secure.
Read the attempts on a charge
A charge or hold lists the attempts before its final one in retry_attempts.
The array is empty when Pay.com made only one attempt. The charge's top-level
status and failure_code, and
underlying_processing_details.settlement_account, belong to the final
attempt, and every attempt shares the charge's chrg_ ID.
This charge for $80.00 USD (amount is in minor units, so 8000 is $80.00)
was declined on its first settlement account and approved on the fallback:
{
"id": "chrg_685125114794084352",
"resource": "charge",
"amount": 8000,
"currency": "usd",
"status": "succeeded",
"failure_code": null,
"underlying_processing_details": {
"settlement_account": "sa_296645958265997350",
"routing_details": {
"selected_methodology": "rule_engine",
"rule_engine": {
"rule_id": "rl_772846036363248640"
}
}
},
"retry_attempts": [
{
"id": "rtratt_685125114794084352_1_1",
"created": "2026-03-06T14:02:38.112Z",
"type": "fallback",
"failure_code": "do_not_honour",
"underlying_network_details": {
"network": "visa",
"visa": {
"raw_response_code": "05"
}
},
"underlying_processing_details": {
"settlement_account": "sa_296645958265997349",
"failure_code": "05"
}
}
]
}Each item in retry_attempts has these fields:
| Field | What it holds |
|---|---|
id | The attempt's ID, rtratt_ followed by the charge's digits and the attempt's numbers. |
created | When the processor handled the attempt. |
type | Why Pay.com retried it. See Retry types. |
failure_code and failure_message | Pay.com's normalized decline code and message for the attempt. |
underlying_network_details | The card network's response, including raw_response_code and, for Mastercard, advice_code. |
underlying_processing_details | The attempt's settlement account and the processor's own decline code. Present only when processor details are enabled on your account. |
payment_method_options | The payment method options Pay.com applied to the attempt. |
A declined charge returns HTTP 400 with a payment_method_error, and the
error carries retry_attempts and underlying_processing_details too. See
Declines.
Listen for retried attempts
Pay.com sends retried_attempt.created each time it's about to retry an
attempt. Its data is a retried_attempt object that describes the attempt
that failed, with its type, failure_code, and underlying_network_details.
When processor details are enabled, it also includes
underlying_processing_details. original_attempt is true when the failed
attempt was the payment's first.
{
"id": "evt_685125114794084401",
"resource": "event",
"type": "retried_attempt.created",
"created": "2026-03-06T14:02:38.210Z",
"data": {
"id": "rtratt_685125114794084352_1_1",
"created": "2026-03-06T14:02:38.112Z",
"type": "fallback",
"original_attempt": true,
"charge": "chrg_685125114794084352",
"reference": "order-48291",
"failure_code": "do_not_honour",
"underlying_network_details": {
"network": "visa",
"visa": {
"raw_response_code": "05"
}
},
"underlying_processing_details": {
"settlement_account": "sa_296645958265997349",
"failure_code": "05"
}
}
}The object identifies the payment in different fields depending on how it was made:
| Payment | Field that's set |
|---|---|
| A charge you created with the API | charge |
| A hold | hold |
| A payment in a payment session | payment_session and payment_attempt |
The fields that don't apply are null, so charge is null for holds and for
session payments. To match every retried attempt to your order, use
reference, which carries the reference you set on the payment.
Verify the Pay-Signature header on every incoming event before acting on it.
See Verify webhook signatures
and Retried attempts.
Card network retry limits
Pay.com's fallbacks happen inside one payment. When your own code retries a
declined card with a new charge, such as in recurring billing, the card networks
limit how often you can do it and charge fees for excess retries. Read the
issuer's code in underlying_network_details on the declined charge before
you schedule a retry.
Visa:
- Never retry these codes: after
04,07,12,14,15,41,43,46,57,R0,R1, orR3inunderlying_network_details.visa.raw_response_code, don't send another authorization for that card. The issuer won't approve it. - Other declines: you can retry the same card up to 20 times in 30 days. Visa counts customer-initiated and merchant-initiated attempts separately, and an approval resets the count.
Mastercard:
- Advice codes
03and21: don't retry. Mastercard charges a fee when a card-not-present payment is declined with03or21and the same card received03or21at the same merchant in the previous 30 days. See Mastercard merchant advice codes. - Declines in 24 hours: after 10 declines for the same card at the same merchant within 24 hours, each further attempt incurs a fee.
- Declines in 30 days: after 35 declined attempts for the same card, merchant, and amount within 30 days, each further attempt incurs a fee in the US, Canada, and the EU.
Next steps
- Routing rules: Add fallbacks to a rule's targets and splits.
- Recurring routing: Fall back to the account that approved the card before.
- Declines: How Pay.com reports decline codes.