stripe / stripe-react-native

React Native library for Stripe.
https://stripe.dev/stripe-react-native
MIT License
1.26k stars 259 forks source link

Google Pay Platform Pay existingPaymentMethodRequired is inconsistent #1517

Open jwoodmansey opened 11 months ago

jwoodmansey commented 11 months ago

Describe the bug We are trying to integrate platform pay using the official Stripe react native SDK on Android. We have the requirement of only showing the platform pay modal if the user has an existing payment method within Google Pay.

Unfortunately we are seeing inconsistent behaviour with this setting. We have found that when a device has Google Pay completely disabled then the isPlatformPaySupported call with the existingPaymentMethodRequired parameter correctly returns false. However we are seeing inconsistent behaviour on devices with Google Pay set up. Sometimes users with no cards in their Google Pay account are getting a true value returned from this check. We originally thought this was maybe just a test environment issue but after switching to the production environment we are seeing the same issue.

To Reproduce

Expected behavior

We are unable to narrow down exactly when this happens, as it does sometimes seem to work.

Smartphone (please complete the following information):

namanReact commented 11 months ago

Which version of Stripe are you running?

jwoodmansey commented 11 months ago

Which version of Stripe are you running?

"@stripe/stripe-react-native": "^0.30.0"

We have since spoken to stripe support and they have concluded it is an issue with the values Google are returning.

dmengelt commented 10 months ago

@jwoodmansey did you also delete all cards from pay.google.com?