PayPal Express Checkout PATCH Incorrect
-
Thank you in advance for your kind consideration.
We have a nonprofit using WordPress with WooCommerce, Donation Platform for WooCommerce and PayPal backend transactional processing.
Our donation product had a default price of $0, because we have a user entered donation amount on our product page and we wanted the amount to be blank to start. When we tried to use PayPal as the payment method the PayPal API would throw a 422 error, because, instead of the user entered donation amount going into their PATCH field value, the ‘product’s’ default price was being sent instead. This issue only happens with PayPal. If you use the credit card or Google Pay methods (through PayPal) the transaction worked. Also when using PayPal as the payment method the correct amount went to the auth on the attached payment source (I tried my credit card and my bank), I could see the user entered amount in my credit card portal as pending. But because the PayPal API throws this error, PayPal never collected on the auth.
PayPal recommended setting the default price to $1. That eliminated the 422 error, but the donation amount collected was $1, instead of the user entered amount. However, this issue only occurs with the PayPal express checkout from the product page. If you click the ‘Donate’ button and go to the checkout page, then choose PayPal, the user entered donation amount is collected.
PayPal support has been very helpful and responsive, but it seems we can’t get around the express checkout issue and the PATCH amount using the user entered value instead of the product default price.The page I need help with: [log in to see the link]
The topic ‘PayPal Express Checkout PATCH Incorrect’ is closed to new replies.