INSTRUMENT_DECLINED error trying to make credit card purchases on sandbox for US users
autobot
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-09-2019
07:12 AM
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.
Labels:
Login to Me Too
- Labels:
-
Express Checkout
1 REPLY 1
n641951363
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr-09-2019
09:31 PM
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
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Subscription purchases w/sandbox do not work due to setup fee issues. Javascript SDK + REST APIs in Sandbox Environment
- REST API issues in sandbox in REST APIs
- UNPROCESSABLE_ENTITY in Sandbox Environment
- enable retrieve billing address for sandbox account in Sandbox Environment
- Emails after purchase of a Subscription Product in PayPal Payments Standard