woocommerce-ios icon indicating copy to clipboard operation
woocommerce-ios copied to clipboard

[Mobile Payments] TTP asks location permission after initiating the payment instead of before.

Open AnirudhBhat opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug I found it odd that iOS prompts for location permission after the card is tapped, rather than before initiating the payment for TTP. Stripe’s payment screen gives the impression that the transaction is nearly complete, but when it redirects back to the WooCommerce app, the transaction fails if location services are off, prompting users to enable location. It would save time if merchants were asked to turn on location up front when the transaction starts.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to any pending order eligible for TTP
  2. Ensure location is off on your phone
  3. Try collecting the payment
  4. Payment initiates and Stripe's screen is shown to tap the card on the phone
  5. After tapping the card, location not turned on error is shown!

Expected behavior Location permission must ideally be asked before initiating the payment.

AnirudhBhat avatar Sep 17 '24 04:09 AnirudhBhat

Thanks for reporting! 👍

dangermattic avatar Sep 17 '24 04:09 dangermattic

@staskus I've assigned you here because you're assigned on #13885, and these have essentially the same cause/potential fix. Feel free to undo if you disagree of course!

joshheald avatar Nov 06 '24 09:11 joshheald

It will be addressed in https://github.com/woocommerce/woocommerce-ios/issues/14168

staskus avatar Nov 06 '24 10:11 staskus