A payment error message should tell the shopper what happened and what they can do next. If the security code is missing, point to the field. If the card issuer declined the payment without giving a reason, offer another payment method instead of guessing why. If the checkout cannot tell whether the payment went through, tell the shopper how to check before they try again.
These are different problems, but many checkouts put them all behind the same red banner: “Payment failed. Please try again.” That message gives shoppers no way to tell whether they need to correct a detail, approve a payment in their banking app, or wait for an order confirmation. A useful payment error map connects each known checkout state to a message, a place to show it, and an action that can resolve it.
Map the error to whoever can fix it
Start by separating problems the shopper can correct from problems that require an issuer, the payment service, or your own checkout to act. A shopper can fix an incomplete postcode. They cannot restore an unavailable payment service. Copy that asks them to re-enter their card in both cases creates extra work and makes a service fault look like their mistake.
Ask your payment integration team which distinctions the checkout can reliably make. A local field validation error, a confirmed decline and a timeout are not interchangeable. Provider responses also vary by payment method and integration, so map the states your checkout actually receives rather than writing a separate message for every cause you can imagine.
Match common payment errors to shopper actions
Missing or incorrectly formatted details: point to the field
When checkout can identify a specific input problem, show the instruction beside that input. “Enter the expiry date as MM/YY” is more useful than “Invalid card details” because it tells the shopper which field to change and what format to use. If the date is in the past, say that instead and suggest checking the date or using another card.
Make sure the error and the input are associated programmatically so a screen reader can announce them together. On submit, bring the first invalid field into view or focus an error summary that links to the fields, depending on the length and structure of the form. Keep unrelated entries intact. Someone correcting a postcode should not have to enter their delivery address again.
Billing address mismatch: distinguish billing from delivery
If the provider reliably reports that the billing postcode did not match, try “Check the billing postcode for this card.” Give the shopper a direct way to edit the billing address, especially if it is hidden behind a selected “Same as delivery address” option. A warning next to the card number sends them to the wrong part of the form.
Do not turn a generic decline into a postcode error. The message should describe only the mismatch the checkout can confirm. If no specific reason is available, use the decline message and offer the recovery options that apply.
Confirmed decline: offer an alternative before another attempt
“Your card issuer declined this payment. Try another payment method, or contact your card issuer if you want to use this card.” This works when the provider confirms an issuer decline but does not supply a reason you can confidently share. Avoid guessing that the shopper has insufficient funds or implying that their card is blocked.
Put “Choose another payment method” next to the message and make it return the shopper to the available options without clearing the rest of checkout. If you only accept cards, offer “Use a different card” instead. Do not make “Try again” the primary action when repeating the same payment is unlikely to resolve the decline.
Verification not completed: resume it if you can
A shopper may switch to a banking app to approve a payment and return to find that checkout is still waiting. While verification is active, explain the handoff: “Open your banking app to approve this payment, then return here.” Only name the banking app when that is where the prompt actually appears. If verification has expired, say so and provide a way to restart it or choose another payment method, as supported by the integration.
Test this journey on a phone. The shopper should be able to switch apps and return without losing the order summary or seeing a fresh Pay button while the first attempt is unresolved. The handoff is also a good place to use clear checkout trust cues: explain who is asking for approval and what the shopper should expect when they return.
Payment status unknown: check before inviting a retry
A timeout is not proof that a payment failed. The processor may have received the request even if the confirmation never reached the checkout page. Use a message such as “We’re checking whether your payment went through. Please don’t submit another payment yet.” Keep that state visible and offer a meaningful next step, such as “Check order status”, if shoppers can actually use it to confirm the result.
If the checkout cannot resolve the status on screen, provide a support route and a reference the shopper can share. Make that route usable for guests as well as signed-in customers. Where your system can confirm that a new attempt is safe, replace the waiting message with a clear retry option. Do not use “You weren’t charged” as reassurance unless you can verify it.
Design the recovery action with the message
Choose placement based on what the shopper needs to do. Put a formatting error beside the relevant field. Put a decline or service problem at the payment-section level, where it remains visible next to the available actions. If the error appears after a redirect, show it on the page the shopper returns to rather than assuming they will scroll back to the payment form.
Preserve the basket, contact information and delivery choices through recovery. Payment fields are a separate matter: a hosted payment component may require some details to be entered again. If that happens, say which details are needed rather than leaving the shopper to discover an empty field. These small decisions apply a central idea from conversion-focused design: remove steps that do not help the shopper finish the task.
Keep an error map the team can test
For each payment state, record the event that triggers it, what the checkout knows about the attempt, the exact shopper-facing copy, where the message appears, and what each recovery action does. Include a fallback for unmapped provider responses. That fallback should still distinguish a confirmed failure from an unknown outcome, because those two states need different retry behaviour.
- Test the fix: Can a shopper use the link or button to correct the actual problem without redoing unrelated work?
- Test the handoff: What appears after switching apps, returning from an issuer page, refreshing checkout, or reopening it on a phone?
- Test outstanding attempts: What happens if the shopper taps Pay twice or the connection drops after submission?
- Test accessibility: Is the failure announced, can the shopper find the next action by keyboard, and does the message make sense without relying on colour?
Review recovery by error category rather than looking at a single payment failure rate. A decline followed by a successful payment with another card tells a different story from three attempts to fix the same postcode. Track the state, the action offered and the outcome without collecting raw card details in analytics. If people repeatedly take an action that cannot resolve the error, revise the mapping first: the message may be readable, but it is sending shoppers to the wrong fix.
