#billhyuou
1 messages · Page 1 of 1 (latest)
You should check if you device has Google Play service and you've logged in a Google account.
yes, the phone have and logged in google account,but google wallet not have card, i apply for testcode in google play console
Is your GooglePayEnvironment set to Test?
yes
PaymentConfiguration.init(
this@odd islandipGooglePayActivity,
googlepayInfoBean.publishableKey
)
and you've added android:name="com.google.android.gms.wallet.api.enabled" to AndroidManifest?
yes have this code
<!-- Enabling this flag is required in order to use the PaymentsClient -->
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
<!--facebook-->
GooglePayLauncher(
activity = this@odd islandipGooglePayActivity,
config = GooglePayLauncher.Config(
environment = if (AppUtils.isAppDebug()) {
GooglePayEnvironment.Test
} else {
GooglePayEnvironment.Production
},
merchantCountryCode = isEmptyNoBlank(googlepayInfoBean.countryCode),
merchantName = isEmptyNoBlank(googlepayInfoBean.merchantDisplayName)
),
readyCallback = {},resultCallback={}}
Did. you included a card in the payment_method_types when creating a PaymentIntent ?
must be real card?
i use test card in googleplayhttps://developers.google.com/pay/api/android/guides/resources/test-card-suite?hl=zh-cn
Are you testing from a country where Google Pay is supported?
Yes it is.
i use google pay can work
but use stripe google pay can not work
use the same phone
OK. Your code looks OK to me. Can you double confirm if the environment is set to Test?
And are merchantCountryCode and merchantName set?
let me see
Any problems?
i find this sdk not have log print? may can open stripe sdk log print?
The Android SDK is full open sourced
This is going to require a bit more investigation. Sorry to redirect you, but can you write in to https://support.stripe.com/contact/email with an sample Android project that I can run and reproduce the issue. We'll respond via email/ticket after looking into it further.
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
It doesn't matter
ok , tks , i will soon send
but i think this, i according to https://stripe.com/docs/google-pay?platform=android#native