cancel
Showing results for 
Search instead for 
Did you mean: 

INSTRUMENT_DECLINED error trying to make credit card purchases on sandbox for US users

Highlighted
New Community Member

INSTRUMENT_DECLINED error trying to make credit card purchases on sandbox for US users

I am getting the following error try to make sandbox credit card purchases when user has country set to US:

 

chargeOrder :: {"name":"INSTRUMENT_DECLINED","details":[],"message":"The instrument presented was either declined by the processor or bank, or it can't be used for this payment.","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"6472b22aae20d"}

 

Note, I do not get this error when using non-US user e.g. GB.

1 REPLY 1
Contributor

Re: INSTRUMENT_DECLINED error trying to make credit card purchases on sandbox for US users

I have same or similar problem.
In sandbox when i try to pay with Credit Card i received 400

 

[PayPal\Exception\PayPalConnectionException:url] => 'https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LSWJA3Q59S777431C758731X/execute'
[PayPal\Exception\PayPalConnectionException:data] => '{"name":"INSTRUMENT_DECLINED","details":[],"message":"The instrument presented  was either declined by the processor or bank, or it can\'t be used for this payment.","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"18096eb9d3901"}'
[*:message] => 'Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LSWJA3Q59S777431C758731X/execute.'
[Exception:string] => ''
[*:code] => 400
[*:file] => '/cpv2/vendor/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php'
[*:line] => 207
[Exception:trace] => [
    0 => [
        'file' => '/cpv2/vendor/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php'
        'line' => 78
        'function' => 'execute'
        'class' => 'PayPal\\Core\\PayPalHttpConnection'
        'type' => '->'
        'args' => [
            0 => '{"payer_id":"YNW46VN8WV9FG","transactions":[{"amount":{"total":"200.00","currency":"USD"},"payee":{"merchant_id":"UUWTDXGCSGE3Y","email":"XXXXXXXXXXXX"},"custom":"3","item_list":{"shipping_address":{"recipient_name":"XXXXXXXXXX","line1":"1 Main St","city":"San Jose","state":"CA","postal_code":"95131","country_code":"US"}},"related_resources":[]}]}'
        ]
    ]



when i execute for second time it works
tried to wait 10/60 sec after approval without success
when i try to use Paypal balance or Credit union the is no problem
in Live no problem


the problem first appeared on April 8 at 10:43:07