Paypal Button throws 422 error
viniciusoliveir
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-15-2020
03:31 PM
Hello, I can't identify the reason for an error when using live. Clicking the pay button, the paypal popup closes immediately with the error:
"Error: /v2/checkout/orders returned status: 422 (Corr ID: daf378feb7fbe)
This is the button code:
paypal.Buttons({ style: { shape: 'pill', color: 'silver', layout: 'horizontal', label: 'paypal', tagline: true }, createOrder: function (data, actions) { return actions.order.create({ purchase_units: [{ amount: { currency_code: 'BRL', value: '101.11' } }] }); }, onApprove: function (data, actions) { ..... }, onError: function (err) { ..... } }).render('#paypal-button-container');
I don't have an exact reference to where the problem is located.
Labels:
Login to Me Too
- Labels:
-
PayPal HTML Buttons
0 REPLIES 0

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
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- Things don’t appear to be working at the moment in PayPal Payments Standard
- Something went wrong. Contact the merchant for help. in PayPal Payments Standard
- How to prompt a "thank you" after using donate button on a website in PayPal Payments Standard
- QR Code Issue in Braintree Client-side Integration (JS, iOS, Android SDKs)