/v2/checkout/orders returned status: 422
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am receiving the error code: 422 when clicking the paypal button or debit card option. It has been working fine when using sandbox client ID and secret. But now I have tried to use the Live credentials, it's throwing this error? What can I do to solve this?
- Labels:
-
Payments REST APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was getting this error because the total value of the order i was creating was not equal to the sum of the items and shipping cost on the order. So check for any discrepancies like that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Really?
I wonder why couldn't they just tell something like "Order amount mismatch..." in the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This error can be triggered when you have a "total" value with 3 decimal digits too. For example: USD 325.326. PayPal will only allow you to send numbers with 2 decimal digits, so you have to fix the number to 325.33.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I faced exactly this issue.
I was sending 13.29999 and Paypal complained.
Side note
I hate the fact that this happened only in production.
Our automated test caused ONLY payments with 2 decimals... statistically absurd, but true.
We added a test to force a number to be rounded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To view the exact error
- Open your web brewers inspector / debug window (press F12)
- View the 'network' tab
- Reproduce the error - by clicking the checkout / paynow paypal button
- View the network traffic and click on the row that returns the HTTP 422 error
- View the Response
- pay attention to the fields:
- issue
- description
- pay attention to the fields:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm facing the same issue, could find a solution?
Uncaught Error: /v2/checkout/orders returned status 422 (Corr ID: f82369735659b).
Error: /v2/checkout/orders returned status 422 (Corr ID: f82369735659b).
{"name":"UNPROCESSABLE_ENTITY","details":[{"field":"/purchase_units/@reference_id=='default'/payee","location":"body","issue":"PAYEE_ACCOUNT_RESTRICTED","description":"The merchant account is restricted."}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"f82369735659b","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-PAYEE_ACCOUNT_RESTRICTED","rel":"information_link","method":"GET"}]}
at https://www.paypal.com/smart/buttons?style.layout=vertical&style.color=gold&style.shape=rect&style.t...
at n.dispatch (https://www.paypal.com/smart/buttons?style.layout=vertical&style.color=gold&style.shape=rect&style.t...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
same foe me
- {name: "UNPROCESSABLE_ENTITY",…}
- debug_id: "f365048b934ab"
- details: [{field: "/purchase_units/@reference_id=='default'/payee", location: "body",…}]
- links: [{href: "https://developer.paypal.com/docs/api/orders/v2/#error-PAYEE_ACCOUNT_RESTRICTED",…}]
- message: "The requested action could not be performed, semantically incorrect, or failed business validation."
- name: "UNPROCESSABLE_ENTITY"

- « Previous page
-
- 1
- 2
- Next page »
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Which api can get oauth2.0 authorization_code? in REST APIs
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- Auto Return feature for digital products without using woocommerce? in PayPal Payments Standard
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- p is not a function error using the example downloaded from Paypal in SDKs