Open jwoodmansey opened 11 months ago
Which version of Stripe are you running?
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.
@jwoodmansey did you also delete all cards from pay.google.com?
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
isPlatformPaySupported
call with anexistingPaymentMethodRequired
field set to true will still return true even though the device has no cards.Expected behavior
isPlatformPaySupported
should return false in this caseWe are unable to narrow down exactly when this happens, as it does sometimes seem to work.
Smartphone (please complete the following information):