decline_code field inside the payment_error type. Use this code to determine why a card was declined and display an appropriate message to your customer.
Decline error response
Decline codes
| Code | Description | Suggested Customer Message |
|---|---|---|
generic_decline | The card was declined for an unspecified reason. | Your card was declined. Please try a different payment method. |
insufficient_funds | The card has insufficient funds to complete the purchase. | Your card has insufficient funds. Please try a different card. |
lost_card | The card has been reported lost. | Your card was declined. Please contact your card issuer. |
stolen_card | The card has been reported stolen. | Your card was declined. Please contact your card issuer. |
expired_card | The card has expired. | Your card has expired. Please update your card details. |
incorrect_cvc | The CVC number is incorrect. | The CVC code is incorrect. Please check and try again. |
processing_error | An error occurred while processing the card. | An error occurred processing your card. Please try again. |
do_not_honor | The card issuer declined the transaction. | Your card was declined. Please contact your card issuer. |
Testing declines
Use thepm_card_declined payment method in test mode to simulate a card decline: