Support forumCategory: BugsBooking Without Paying Issue
Mark Stockton asked 2 years ago

I have set the plugin to make users have to pay by PayPal before booking but it does not block the user from booking without paying. The appointment still goes through and returns “done” message to the user.

4 Answers
Nikola Loncar Staff answered 2 years ago

Hi Mark, you must mark option required inside PayPal settings in Extension plugin.

Best regards,
Nikola

mark_stockton answered 2 years ago

Hi,

We already have that setting checked it still allows booking to go through without payment from PayPal first.

Nikola Loncar Staff replied 2 years ago

Hi can you please send me the link to that page?

Best regards,
Nikola

mark_stockton replied 2 years ago

http://photocove.developingtheweb.co.uk/ if you scroll down the page a bit the booking form is there.

Nikola Loncar Staff answered 2 years ago

Hi Mark,

can you please tell me when you open EA Extension Connection > PayPal page is option Payment is required checked?

Best regards,
Nikola

mark_stockton replied 2 years ago

Hi,

Yes the option is checked.

Nikola Loncar Staff replied 2 years ago

Hi Mark can you paste me here short code that you are using on customers page?

Best regards,
Nikola

mark_stockton replied 2 years ago

Hi,

I put it manually in the php files with:

do_shortcode(‘[ea_bootstrap width="800px" scroll_off="true" layout_cols="2"]‘);

Nikola Loncar Staff replied 2 years ago

Hi I have check that site again and there is only paypal button now. 🙂

Best regards,
Nikola

mark_stockton replied 2 years ago

Hi,

I don’t know why that is the case as we actually haven’t changed anything but now when you click the paypal button the window pops up and closes instantly.

Mark

Nikola Loncar Staff answered 2 years ago

Hi Mark have you check if everything is setup fine? Here is documentation page: https://easy-appointments.net/documentation/paypal-setup-tutorial/

Best regards,
Nikola

mark_stockton replied 2 years ago

Hello,

Yes but the window just closes, tried on multiple browsers. This also used to work at one point on one of the versions. There seems to several intermittent issues with this plugin, unfortunately as we have paid for this plugin we are now at the point where a refund would be more practical as we have spent too much time going back and forth with support requests.

mark_stockton replied 2 years ago

According to the console it is not passing through the amount value at all resulting in a PayPal api response error:

{
“name”: “VALIDATION_ERROR”,
“details”: [
{
“field”: “transactions.amount”,
“issue”: “Currency amount must be non-negative number, may optionally contain exactly 2 decimal places separated by ‘.’, optional thousands separator ‘,’, limited to 7 digits before the decimal point and currency which is a valid ISO Currency Code”
}
],
“message”: “Invalid request – see details”,
“information_link”: “https://developer.paypal.com/docs/api/payments/#errors”,
“debug_id”: “2488768b7469c”
}

mark_stockton replied 2 years ago

And actually according to that is complaining about the currency code as well as not passing through the value. I will delete the plugin and db data and reinstall from the start see if that makes any difference.

mark_stockton replied 2 years ago

Still no joy, the XHR post request has no total value:

[{amount: {total: “”, currency: “GBP”}}]

Nikola Loncar Staff replied 2 years ago

Hi Mark, there is no price set for that service? Can you please check Services tab in EA Settings Admin page and see if there are prices for services?

Best regards,
Nikola

mark_stockton replied 2 years ago

All services have a price.

mark_stockton replied 2 years ago

We have found the issue with the plugin, there has been an oversight in the way the plugin deals with the option of hiding the price.

Nikola Loncar Staff replied 2 years ago

Hi Mark can you please turn off hidden prices and I will check if it is removing price before creating a calculation.

Best regards,
Nikola