Closed kiss718867 closed 10 months ago
Hi @kiss718867 Google Pay's document says
In the TEST environment, if you set existingPaymentMethodRequired to true in an IsReadyToPay() request, the response always returns true.
So I'd expect IsReadyToPay
returns true and PaymentSheet should display Google Pay. Are you currently located in a country where Google Pay is supported?
@seanzhang-stripe hi, thanks for your reply, I am in China, i modified the Google Play profile and Google Wallet payment profile to HongKong,and use VPN to locate to HongKong,but IsReadyToPay
still return false, is there any other info needs to be modified?
Hi @kiss718867 to my best knowledge Google Pay is not available in China, and I'm not sure if Google Pay is allowed through VPN.
Maybe you want to test it again in an Android emulator which allows you to set a location? You should also make sure to use a Google account that was created in a country where Google Pay is supported.
Closing due to inactivity
Summary
already add credit card to Google Wallet,use stripe-android paymentsheet-example,Google Pay not show in test environment
Code to reproduce
method isReadyToPay params
existingPaymentMethodRequired = true and allowedPaymentMethods have one payment method, but isReadyToPay return false
existingPaymentMethodRequired
annotation says If set to true, then theisReadyToPay()
class method will returntrue
if the current viewer is ready to pay with one or more payment methods specified inallowedPaymentMethods
.Android version
Android 13
Impacted devices
xiaomi 10s
Installation method
run stripe-android paymentsheet-example
Dependency Versions
kotlin: 1.8.0 stripe-android: 20.21.1 Android Gradle Plugin: 7.4.2 Gradle: 8.0