Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PayPal error (10525) when a bookable slot is not selected #846

Open
grig-23 opened this issue Jan 18, 2021 · 2 comments
Open

PayPal error (10525) when a bookable slot is not selected #846

grig-23 opened this issue Jan 18, 2021 · 2 comments
Labels
type: bug The issue is a confirmed bug.

Comments

@grig-23
Copy link

grig-23 commented Jan 18, 2021

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

  1. Go to a bookable product page. Do not select any slots.
  2. Click the yellow PayPal Checkout button on the product page.
  3. See the error.

Screenshots

Screenshot
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 #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

@grig-23 grig-23 added the type: bug The issue is a confirmed bug. label Jan 18, 2021
@joweber123
Copy link

Another report of this here 3845301-hc I have been able to reproduce this as well.

@joweber123
Copy link

joweber123 commented Mar 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants