How do I handle INSTRUMENT_DECLINED error?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cause:
This error occurs when your payer's funding source was declined either by the processor or bank, or the instrument cannot be used for this transaction. This error typically occurs while capturing the payment.
Here are some common reasons why a payment is being declined:
- The billing address associated with the payment method is incorrect.
- The transaction exceeds the card limit.
- The card issuer denied the transaction.
Sample API Error Response:
{
"name": "UNPROCESSABLE_ENTITY",
"details": [
{
"issue": "INSTRUMENT_DECLINED",
"description": "The instrument presented was either declined by the processor or bank, or it can't be used for this payment."
}
],
...
}
Solution:
Restarting the payment is required if you directly call the Orders API from your server. If you use actions.order.capture(), the script automatically restarts the checkout flow and prompts the payer to select a different funding source.
Restart the payment in the onApprove function as follows:
Paypal.Buttons({
onApprove: function (data, actions) {
return fetch('/my-server/capture-paypal-transaction', {
headers: {
'content-type': 'application/json'
},
body: JSON.stringify({
orderID: data.orderID
})
}).then(function(res) {
return res.json();
}).then(function(captureData) {
if (captureData.error === 'INSTRUMENT_DECLINED'); // Your server response structure and key names are what you choose
return actions.restart();
}
});
}
}).render('#paypal-button-container');
For more information, please refer to the Handle funding failures documentation available here.
- Labels:
-
Payments REST APIs

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- ppxo_inline_guest_unhandled_error - How to handle this error throguh code in PayPal Payments Standard
- Some negative testing value only reply 403 Forbidden in Sandbox Environment
- Paypal Error on WooCommerce for credit card payments in Argentina in REST APIs
- Paypal Error on WooCommerce for credit card payments in Argentina in REST APIs
- Saved paypal payment integration in REST APIs