Error & Decline Handling

Interpret failed payments and respond to them correctly

Not every payment succeeds. A request can fail before it reaches the card network (a validation error PCE returns synchronously) or be turned down by the issuer (a decline returned on the payment response). Handling both correctly improves your authorization rate, reduces customer friction, and keeps your retry behavior within card network rules.

Use this section as the reference for what PCE returns on a failed payment and what to do about it.


How a payment can fail

Failure typeWhere it happensHow you see itWhat to do
Validation errorAt PCE, before the card networkThe request is rejected synchronously with an error (missing/invalid field, permission issue).Correct the request and resubmit.
DeclineAt the issuer, after the networkThe payment response returns status: Declined with a responseCode and authMessage.Read the code and follow the recommended action.

See also



Did this page help you?
.readme-logo { display: none !important; }