On this page
Payment failures aren't edge cases. Cards expire, banks decline, verification screens time out and networks drop. What decides whether the person tries again or leaves is the screen they see in that moment. "Something went wrong" is the most common answer, and a retry button that might charge twice is the most dangerous one.
Sort failures by what the person can do
Payment providers return dozens of failure codes. People don't need the code; they need to know their next step. Almost every failure fits one of five paths:
- Fix the details: wrong card number, expired card, wrong security code, billing details that don't match.
- Use another method: declined by the bank, insufficient funds, card type or currency not supported.
- Confirm with the bank: the verification step (3-D Secure) failed, was cancelled or timed out.
- Wait: the result isn't known yet, usually after a timeout.
- Get help: repeated failures, or a problem on your side.
Map every code your provider can return to one of these paths, and design five screens instead of fifty messages.

"We don't know yet" is its own state
When the connection drops after the person pressed Pay, you often can't tell whether the payment went through. Showing "Payment failed, try again" here is how people get charged twice.
Instead:
- Say that you're checking: "We're confirming your payment. This can take up to a minute. Please don't pay again."
- Check the status with your payment provider before allowing a new attempt.
- If it succeeded, continue as normal; if it failed, then offer the retry.
For developers, the safeguard is an idempotency key: the same payment attempt sent twice is processed once.

Write declines without blame or guesses
Banks often return a generic "declined" without saying why. Don't invent a reason: telling someone they have insufficient funds when they don't is embarrassing for them and costly for you. And never suggest fraud on screen, even if that's what the code says.
A message that respects the person:
- says what happened in plain words ("Your bank declined this payment");
- says what usually helps ("Try another card, or contact your bank to allow the payment");
- keeps the way forward one tap away.
Keep everything they typed
After a failure, keep the form filled in and the cart intact. Highlight the one field that needs fixing, move focus to it, and say what's wrong next to it ("This card expired in 08/26"). Clearing a payment form after an error feels like a punishment.
Offer the alternative right there
If the card was declined, the next best step is usually another payment method. Show the other methods on the failure screen itself instead of sending people back to the start of checkout.
A small message library
- Expired card: "This card has expired. Use another card or update the expiry date."
- Wrong security code: "The security code doesn't match. It's the 3 digits on the back of the card."
- Declined: "Your bank declined this payment. Try another card, or ask your bank to allow it."
- Verification failed: "Your bank couldn't confirm the payment. Try again and complete the bank's check."
- Unknown result: "We're confirming your payment. Please don't pay again; this takes up to a minute."
Checklist
- Every provider failure code maps to one of five paths.
- Unknown results show a checking state, never an immediate retry.
- Payments use idempotency keys so a retry can't charge twice.
- Decline messages don't guess reasons and never mention fraud.
- The form and cart survive the failure; the faulty field is highlighted.
- Other payment methods are offered on the failure screen.
Sr. Product Designer for SaaS, fintech & Web3. Need this designed and built for your product?


