#vatsa-reactnative-gpay
1 messages ยท Page 1 of 1 (latest)
Can you also share an example PaymentItnetn that was successful?
you mean the client_secret?
No, the PaymentIntent ID - if you don't have that the client secret also works
๐ Can you copy paste that ID here?
As far as I know it should still show up in the test env
sure, please wait
pi_3N5XGlSJLKIhoAjJ1rOr94cx_secret_UBbChzfjSqMVCbubb2XeRJqvQ
pi_3N5XGlSJLKIhoAjJ1rOr94cx
The default credit/debit card modal works fine. i am facing this issue only with gpay
Still looking - I'm not fully sure what this could be yet
oh okay.
I took a look at that PaymentIntent and it says it actually still is in a state of requires_payment_method (so it wasn't successful)
Are you sure you're getting PaymentIntents that are successful when the google pay modal does not appear?
vatsa-reactnative-gpay
I am pretty sure they are successful. Becaus
Error modal displays incase it catches error from confirmPlatformPayPayment. But i am getting the success alert message (as shown in code). So i am pretty sure the payment intent should be successful
Are you sure you're not seeing anythign in your logs? Or do you maybe have other examples of successful PIs that were completed with google pay?
wait, let me check
hey, sorry for the confusion
PI is not successful, it is in incomplete state
๐ stepping in
on hover, it says customer has not entered their payment method
So you are clicking the button but not seeing the Google Pay payment sheet appear, correct?
Right!
Can you add a log right before confirmPlatformPayPayment() and ensure you see that log in Metro?
Also I never recommend combining await with .then
It oftentimes leads to unexpected things in your code and is confusing overall. Would highly recommend either just using await or just .then
this is the response log
oh okay, thank you for the advice!!
Hmmm
Can you change your code to just do something like let res = await confirmPlatformPayPayment(... ...); console.log("res: ", res);
getting unhandled promise rejection
res {"_h": 0, "_i": 0, "_j": null, "_k": null}
WARN Possible Unhandled Promise Rejection (id: 4):
ReferenceError: Property 'error' doesn't exist
ReferenceError: Property 'error' doesn't exist
oh no
got it
missed async, my bad
Ah there you go
Okay so yeah first doesn't look like you are properly calling isPlatformPaySupported
Did you enable Google Pay in your AndroidManifest.xml ?
And do you have a live card in your Google Pay wallet currently?
Please wait, im checking
i did
Lastly, how are you testing? Are you on an emulator? Or device?
Yes, i do
i say gpay will not be available on emulator, so i am on android
device*
i saw*
right!
is this the right way?
i have referred step 4 from docs
still getting gpay not supported error
Yes that would be the way to know on load whether it is supported on your device or not
In the future you would want to decide whether to show the Google Pay button or not based on isPlatformPaySupported
Okayy...
So right now the issue is that for some reason your device is not set up correctly for Google Pay
Right
There are limitations with India for web (https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-in-india) but this shouldn't affect mobile as far as I know...
For Stripe Checkout and Elements
It is available for the Mobile SDKs (I think/thought)
Have you used the card in your GPay wallet for a Google Pay purchase before?
๐
Yes, may times
many*
can you confirm this?
Yep working on it
great
Checking with our mobile team. May take a few mins for someone on that team to confirm one way or another
sure, no problem
Okay they confirmed that nothing has changed on our end and it should still be supported on Mobile SDKs....
okay
You aren't using Google Pay through UPI are you?
to set up google pay, only following stripe docs is enough, right? Or do i have to do all this? https://developers.google.com/pay/api/android/guides/tutorial
Nope the Stripe guide is enough
i have both upi and card
That guide would be for integrating Google Pay directly. We basically do that for you
okay, got it
Okay yeah we don't support UPI
But if you have Card then it should work...... ๐ค
Yes, i have checked with the upi note and i am cool with it. i need only card
yes ๐คจ
Do you have another device you could test on by chance?
Or try a different Card in your wallet?
actually i do, but i need to isntall and set up gpay in that device
Might be worth doing that to get a bit more data....
okay, will do that and let you know
๐
Also trying a different Visa/Mastercard in your GPay wallet would be worth testing if you have one
okay great. will let you know once i am done with that
hey, i have an old phone which does not support my current sim card. so unable to check on other device ๐ฆ
Hmm can it connect to wifi? Might not need a sim?
to verify gpay account, it needs active sim card on the using device
Ah okay
Didn't realize that
Dang okay... well have you tested a different card on the device you were using before?
Do you happen to have a contact outside of India that you are working with that could test?
will do that now
sadly, no ๐
i tried adding a card, still doesn't work
Oof
Well I'm mostly out of ideas unfortunately. I think the next step would be to get someone outside of India to test it to rule that component of things out. I think what I'd recommend at this point is emailing our Support team via https://support.stripe.com/contact/login and including your project, or at least all of the relevant code you are using for PlatformPay in your project, and someone on our Support team can reproduce using your code and ensure it works.
Sorry we couldn't get to the bottom of it here!