New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google pay integration using GooglePayLauncher #4102
Comments
@shubhamrb I am sorry that onGooglePayReady is always returning false. In order to test and use Google Pay on a phone you must have the Google Pay App installed, and a payment method added as described here. Sometime users worry that during testing the payment method attached to their Google Pay account will be charged. If you set the GooglePay configuration to
|
i've Google pay installed in my phone, also i've added following lines in my manifest : meta-data still facing this issue |
@shubhamrb Can you share the following values being set in the
|
|
FYI i am using it inside Fragment. |
@shubhamrb Google Pay is not available across all countries and devices. I am curious if you would be able to test it out on an emulator? |
@michelleb-stripe can you please confirm if it is available in India? and as you suggest for emulator, I will try but i guess in emulator Google pay app won't work |
@shubhamrb I currently have PaymentSheet from the Stripe SDK working with Google Pay on my emulator, so you shouldn't have any trouble. Specifically I am using Android 10.0 (Google Play), I have also associated my Google account with the phone. I am happy to help if you have any trouble getting it set up. Based on this page provided by google, I believe it should work in India. |
@michelleb-stripe can you please help me with the pseudocose for paymentsheet integration, because i used it previously and it didn't work. |
@shubhamrb Since you already have GooglePayLauncher configured and setup you can continue to use it. I have verified that GooglePayLauncher will also work on the emulator: Android 10.0 (Google Play). |
@michelleb-stripe i tried in emulator also but it didn't work, i don't know i am doing something wrong |
@shubhamrb I am continue to troubleshoot your issue. When setting up my account on GooglePay I had to add a card on a real phone, and then use the same GooglePay account on the emulator. (This is because the GooglePay standalone could not be opened on the emulator to setup the card). Could you share how you configured GooglePay for your account? Which type of card network you associated with your GooglePay account on the emulator. Was it one of these: "AMEX", "DISCOVER", "INTERAC", "JCB", "MASTERCARD", "VISA"? Or did you connect Google Pay to your bank account and using the wallet functionality? |
@michelleb-stripe i didn't have any card in my Google pay account, i have connected by bank account using registered mobile number. |
@shubhamrb Google Pay lists the supported PaymentMethods here. As of today, they support a limited number of Cards or PayPal. Unfortunately a connected bank account is not supported. Today the SDK works with a subset of what Google Pay supports. It should work with the following cards: "AMEX", "DISCOVER", "MASTERCARD", "VISA". It should work for pre-paid cards as well. |
@michelleb-stripe that's really unfortunate and strange bcz most no. of user in India uses their bank account in GPay not cards. |
@shubhamrb Unfortunately we will not be able to resolve this issue until Google supports this in their API. We will keep watching for when they publish new support and add it when it becomes available. |
Hello @michaelc-stripe onGooglePayReady always returns false. googlePayLauncher = GooglePayLauncher(
After instantiating GooglePayLauncher, the GooglePayLauncher.ReadyCallback instance is called with a flag indicating Always returns false. |
I have the same problem, but I guess it might be because I don't have a payment card in my Google account (I can't add a payment card to my account), so I decided to let my customer test it out |
Hello @michaelc-stripe and @Qiubeijun |
I think i got the issue In |
@michelleb-stripe hello , I have the same problem |
@bridgingamit18 hello ,are you solve? |
No @xiuone |
getting Google Pay is available in device even installed in app along with added payment method. getting this issue in some devices. |
any news? |
I think this assumption might not be entirely correct.
|
any news here? I have a same issue. But, when I tested with a google wallet library not using stripe library, I can get a true value from ready callback listener. I created a PaymentsClient directly with same Test Environment, and added cards listof (AMEX, DISCOVER, JCB, MASTERCARD, VISA), afterwards, I was able to get a true value. Is it related with a Country Code?? It seems like It might affect list of available cards. Please give me a clue for it |
I am facing the same issue. I have tried it on multiple android devices but the ready callback is always false. I have also tried multiple merchant ids including: US, IN, HK - same result. |
We found the solution of the ready callback returning false. |
I am still facing this issue. Any update on this? |
googlePayLauncher =
pass existingPaymentMethodRequired = false it will work |
Yes existingPaymentMethodRequired = false, worked for me |
Hello, This issue has been open for a while, and it seems to have attracted people who are having problems with their Google Pay integration, but haven't opened a new issue. One thing I noticed that might be casing confusion is the "Google Pay" branding. We support the Google Pay API, which lets you pay with credit or debit cards, or link a PayPal account. This comment says:
That makes me think that some people might be referring to Google Pay for India, which lets you pay with your bank account through UPI. We don't support this integration yet. If you're having problems integrating with Google Pay through our SDK, please open a new issue, and follow the instructions provided in the template so that we have enough information to help you. Please also let us know your country and what payment method you're trying to use, so we can better understand your situation. |
Summary
onGooglePayReady always returns false.
Code to reproduce
final GooglePayLauncher googlePayLauncher = new GooglePayLauncher(
this,
new GooglePayLauncher.Config(
GooglePayEnvironment.Test,
"IN",
"Widget Store"
),
this::onGooglePayReady,
this::onGooglePayResult
);
private void onGooglePayReady(boolean isReady) {
// implemented below
binding.btnGPay.setEnabled(isReady);
}
Android version
Android version : 9
Impacted devices
Device : MI A1
Installation method
as per the stripe doc https://stripe.com/docs/google-pay
SDK version
SDK version : implementation 'com.stripe:stripe-android:17.1.0'
Other information
The text was updated successfully, but these errors were encountered: