#凯文-GooglePay
1 messages · Page 1 of 1 (latest)
Every google pay account have a card setup properly.
I try on the phone A 2 different google pay, and it works
I try on the phone B 2 different google pay (same as before) and it doesn't work
Is it Chome version 61+?
it is on our APP, using Stripe as google pay gateway
I see. So it must the Google supportability of the devices
If your app worked on some device then there is definitely no issue with the integration
it cannot be a stripe compatibility with some devices ?
because it create a payment_intent on Stripe dashboard
but after there is not a GooglePay window appear
No I don't think so. Are you following this guide? https://stripe.com/docs/google-pay?platform=android#instantiate
If you have a device that you can reproduce, you can check if this function is invoked
private fun onGooglePayReady(isReady: Boolean) {
}
Okie. So it means GooglePay is not available for that device. Which country are you testing from?
I see. In example which device is not working?
and they have Google Pay app?
yes with credit car registered
Weird, one moment
yes that's very weird, it's been one week we try to fix this
Hi @grizzled vine I'm also an engineer from Stripe.
Hello Jack
qq, did it work before and stopped working recently?
When you say it's not working, do you see any error message?
yes it says google pay is not available
no we just developed the APP and before we used it on phone which is working and never notice it doesn't work on other phone.
In what condition do you prompt the Google Pay not available dialog?
And are you testing from a country where Google Pay is supported?
Yes this phone is in France.
The "google pay not available" dialog prompt after I choose google pay on the App and click on "lease". After that there is a payment_intent.created on Stripe Dashboard
I mean this dialog is coming from your application right. So in your application, what API do you call to determine if Google Pay is available?
For example, are you using this ReadyCallback (https://stripe.dev/stripe-android/payments-core/com.stripe.android.googlepaylauncher/-google-pay-launcher/-ready-callback/index.html) ?
yes, this is the call back
Can you show me the code you wrote to config the GooglePayLauncher?
According to the SDK documentation, initialize these two lines of code, and then pass it to the Stripe sdk to initialize the transaction configuration. After the Stripe sdk processes the result, it will call this onGooglePayReady to tell me whether the initialization is successful or not. If the initialization is unsuccessful, forcing a call to Google Pay will report an error. I can't capture the logs of Stripe sdk during this process, so I can't locate where the problem is
Did you add
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />``` in the Android manifest?
That's very strange. Was Google Pay working in your app previously?
And can you send me one PaymentIntent ID so that I can take a look?
it's still work with some devices, and not on other devices
payment_intent.created
View event detail
Event data
{
"id": "pi_3LXgnqCvCCWpIUkq1njEsFxW",
"object": "payment_intent",
"last_payment_error": null,
"livemode": true,
"next_action": null,
"status": "requires_payment_method",
"amount": 2500,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
qq: Are Samsung S10 and Vivo X60Pro using France SIM card?
what if you replace their SIM cards with SIM card from a working device?
yes it does use french SIM card
we can try, but then it wouldn't explain why it doesn't work with this APP particularly, because as I mentioned before we already use Googlepay with those devices on multiple platform
When you say you can use Google Pay with those devices, are you referring to the contactless payment with Google Pay? or online payment with Google Pay?
everything, and also the payment on other APP
we never faced issue using google pay with those devices
When you initialize GooglePayLauncher, can you try passing existingPaymentMethodRequired = false?
Like the electric scooter in Paris, the APP is Lime, I don't know if they use Stripe gateway but googlePay works perfectly
Let me confirm one more thing. Have you have logged in a Google account in the test device, and you have also added an active card to this Google Pay account?