When a payment fails due to a card issue, the error response includes aDocumentation Index
Fetch the complete documentation index at: https://docs.fluveo.com/llms.txt
Use this file to discover all available pages before exploring further.
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:
Handling declines
Check thedecline_code field in the error response and map it to a customer-friendly message:
decline_code | Suggested message |
|---|---|
insufficient_funds | Your card has insufficient funds. |
expired_card | Your card has expired. Please update your card. |
incorrect_cvc | The CVC code is incorrect. Please try again. |
generic_decline | Your card was declined. Please try another card. |
do_not_honor | Your card was declined. Please contact your card issuer. |