Line 9: @Html.VendrCheckoutPartial("VendrCheckoutOrderInfo",
currentOrder)
Line 10:
Line 11: @using (Html.BeginPaymentForm(currentOrder))
Line 12: {
Line 13: @Html.AntiForgeryToken();
Hmmm, searching online it suggests this could be to do with your account not being able to handle the currency.
It looks like details about why it failed do get passed in the response body but we don’t seem to be handling that. You might need to pull the provider source code from GitHub and debug into the provider to see what the actual details of the bug is.
I’ll try and take a look what we can do to show the error details.
Your PayPal account must have an adequate balance to cover the payouts it is attempting to process. Unlike personal PayPal accounts that withdraw from a bank or credit card source, you must have a sufficient existing PayPal balance to cover the referrals you are attempting to pay out, or you will receive this error. Also, know that your PayPal sandbox account has a separate balance than your live account, so make sure it is adequately funded as well prior to testing with a sandbox account.
The currency code the funds are being sent in cannot be received by the recipient due to country or account regulations.
I'm not quite sure because I don't have access to the PayPal account. But I'm pretty sure it's set as Euro currency on both sides.
The customer has now contacted PayPal. As it looks at the moment, PayPal is missing some documents. Therefore they have restricted the account. It's just strange that the account has been accepted without any problems so far. Several payments have already been made through it.
I have now temporarily hidden PayPal as a payment method in the shop. As soon as the account-related problems are solved, I will test again and let you know.
Not sure that should be the problem here though as we don't send individual order lines through, but still, might be worth seeing what other things cause the 422.
Call failed with status code 422 (Unprocessable Entity): POST https://api.paypal.com/v2/checkout/orders
Hi Matt,
I get the following error when trying to checkout using PayPal:
Call failed with status code 422 (Unprocessable Entity): POST https://api.paypal.com/v2/checkout/orders
Source File: C:\Inetpub\vhosts\mountaincard.it\httpdocs\App_Plugins\VendrCheckout\Views\VendrCheckoutReviewPage.cshtml Line: 11
Installed Version Vendr v1.8.1
Do you know what is going wrong?
Thanks
Stack Trace:
Hey Edgar,
Hmmm, searching online it suggests this could be to do with your account not being able to handle the currency.
It looks like details about why it failed do get passed in the response body but we don’t seem to be handling that. You might need to pull the provider source code from GitHub and debug into the provider to see what the actual details of the bug is.
I’ll try and take a look what we can do to show the error details.
Thank you Matt,
in the meantime I found out, that the error only occurs in live mode. Switching to sandbox mode accepts the payment without any errors.
Searching online I found a couple of entries suggesting it might be related to the PayPal account itself.
https://docs.affiliatewp.com/article/1407-paypal-payouts-error-codes
Have you experienced a similar behaviour before?
Hi Edgar,
I've not no, but they are the same posts I was finding.
Out of interest, what currency is the target payout paypal account set up in? And what currency are the payments on the website?
Matt
Hi Matt,
I'm not quite sure because I don't have access to the PayPal account. But I'm pretty sure it's set as Euro currency on both sides.
The customer has now contacted PayPal. As it looks at the moment, PayPal is missing some documents. Therefore they have restricted the account. It's just strange that the account has been accepted without any problems so far. Several payments have already been made through it.
I have now temporarily hidden PayPal as a payment method in the shop. As soon as the account-related problems are solved, I will test again and let you know.
In any case, thanks for the feedback.
Edi
Hmmm, very weird.
Do let me know if problems continue once the account is sorted 👍
Hi folks,
Sorry for jumping on an old issue. But does anyone have any further info?
Or website this morning starting getting '422 unprocessable entity' from PayPal.
We've actually been getting 422 intermittently from Opayo for over a week now too. Intermittent proving more difficult to debug.
Hi George,
I don't have any further info, but maybe it's worth checking the PayPal forums for anything that might shed some light on the issue for example I just found this one https://www.paypal-community.com/t5/REST-APIs/v2-checkout-orders-returned-status-422/td-p/2018363
Not sure that should be the problem here though as we don't send individual order lines through, but still, might be worth seeing what other things cause the 422.
Matt
Hi Matt,
Thanks for the response.
Some good info there.
Still struggling to identify what the 'entity' is that's causing the issue. Will need to keep digging.
Cheers again,
George
is working on a reply...