woocommerce / woocommerce-gateway-payfast

South African payment gateway supporting subscriptions, deposits & pre-orders
https://wordpress.org/plugins/woocommerce-payfast-gateway/
40 stars 15 forks source link

Clicking the back button after purchase gives everlasting spinner on iOS. #3

Closed geeklore closed 6 months ago

geeklore commented 6 years ago

Affected ticket(s)

1392362-zen

What I expected

Customer expects to be able to click the back button after making the purchase. Taking them from the PayFast site back to their own site and into the cart again.

What happened instead

This works on my Mac, but on the iPhone, which is what they are reporting, it does not work. The same for the customer.

Steps to reproduce the issue

  1. Enable PayFast
  2. Make a purchase from your iPhone (I am using Sandbox Mode)
  3. You will be taken to the PayFast site. Click the back button to go back to your site and it will freeze up. You get a spinner that goes forever.

I am really not sure if this is a bug or not. I would think clicking back to your site is probably not the greatest idea, but maybe it's expected to work.


peterwilsoncc commented 9 months ago

In the linked PR #187, I've added some JavaScript sniffing to prevent the overlay from displaying if the user has navigated back to the pay now page.

I am really not sure if this is a bug or not. I would think clicking back to your site is probably not the greatest idea, but maybe it's expected to work.

I'm in two minds about this too but given there is a button to allow customers to cancel the order and restore their cart, it's probably best to allow them to use it.