woocommerce-gateway-paypal-express-checkout
woocommerce-gateway-paypal-express-checkout copied to clipboard
PayPal error (10525) when a bookable slot is not selected
Describe the bug
Let me know if this should be moved to WooCommerce Bookings repository.
When a bookable slot is not selected (and the product price is effectively 0) and customers click one of the PayPal Checkout buttons at the product page - this error message appears:
PayPal error (10525): An error (10525) occurred while processing your PayPal payment. Please contact the store owner for assistance.
To reproduce
- Go to a bookable product page. Do not select any slots.
- Click the yellow PayPal Checkout button on the product page.
- See the error.
Screenshots
Screenshot direct link: https://d.pr/i/npBUCd
https://snipboard.io/A3gDxY.jpg
Expected behavior
The buttons should be hidden before the slot is selected. Alternatively, the error message should be more clear, although the first approach sounds better.
Related to https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/635
Environment (please complete the following information):
- WordPress Version latest
- WooCommerce Version latest
- PayPal (Express) Checkout Plugin Version latest
- Browser [e.g. chrome, safari] and Version Chrome
Additional details
reported in 27086523-hc
Another report of this here 3845301-hc I have been able to reproduce this as well.
Just to add more information, error code 10525 is the following.
PayPal returned API error code 10525 - This transaction cannot be processed. The amount to be charged is zero.
This makes sense since no amount has been selected to send to PayPal. Agreed that the best solution here would be to make the button not clickable or hide it until a timeslot is selected.