#vatsa-reactnative-gpay

1 messages ยท Page 1 of 1 (latest)

stuck juncoBOT
sage sleet
#

Hello! Which docs are you following?

#

and what does your code look like?

formal lantern
#

Let me share the screenshots, please hold on

#

this is the doc that i followed

sage sleet
#

Can you also share an example PaymentItnetn that was successful?

formal lantern
#

you mean the client_secret?

sage sleet
#

No, the PaymentIntent ID - if you don't have that the client secret also works

formal lantern
#

let me check

#

does the modal not show up in test env?

sage sleet
#

๐Ÿ‘ Can you copy paste that ID here?

#

As far as I know it should still show up in the test env

formal lantern
#

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

stuck juncoBOT
sage sleet
#

Still looking - I'm not fully sure what this could be yet

formal lantern
#

oh okay.

sage sleet
#

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

formal lantern
#

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

sage sleet
#

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?

formal lantern
#

wait, let me check

#

hey, sorry for the confusion

#

PI is not successful, it is in incomplete state

cerulean shale
#

๐Ÿ‘‹ stepping in

formal lantern
#

on hover, it says customer has not entered their payment method

cerulean shale
#

So you are clicking the button but not seeing the Google Pay payment sheet appear, correct?

formal lantern
#

Right!

cerulean shale
#

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

formal lantern
#

this is the response log

formal lantern
cerulean shale
#

Hmmm

#

Can you change your code to just do something like let res = await confirmPlatformPayPayment(... ...); console.log("res: ", res);

formal lantern
#

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

cerulean shale
#

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?

cerulean shale
#

Lastly, how are you testing? Are you on an emulator? Or device?

formal lantern
#

device*

cerulean shale
#

Yep correct

#

Wanted to make sure you weren't on emulator

formal lantern
#

i saw*

#

right!

#

is this the right way?
i have referred step 4 from docs

#

still getting gpay not supported error

cerulean shale
#

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

formal lantern
#

Okayy...

cerulean shale
#

So right now the issue is that for some reason your device is not set up correctly for Google Pay

formal lantern
#

Right

cerulean shale
formal lantern
#

Oh man

#

it says google pay unavailable for merchants in indai

cerulean shale
#

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?

formal lantern
#

๐Ÿ™ƒ

formal lantern
cerulean shale
#

Yep working on it

formal lantern
#

great

cerulean shale
#

Checking with our mobile team. May take a few mins for someone on that team to confirm one way or another

formal lantern
#

sure, no problem

cerulean shale
#

Okay they confirmed that nothing has changed on our end and it should still be supported on Mobile SDKs....

formal lantern
#

okay

cerulean shale
#

You aren't using Google Pay through UPI are you?

formal lantern
cerulean shale
#

Nope the Stripe guide is enough

formal lantern
cerulean shale
#

That guide would be for integrating Google Pay directly. We basically do that for you

cerulean shale
#

Okay yeah we don't support UPI

#

But if you have Card then it should work...... ๐Ÿค”

formal lantern
#

Yes, i have checked with the upi note and i am cool with it. i need only card

formal lantern
cerulean shale
#

Do you have another device you could test on by chance?

#

Or try a different Card in your wallet?

formal lantern
#

actually i do, but i need to isntall and set up gpay in that device

cerulean shale
#

Might be worth doing that to get a bit more data....

formal lantern
#

okay, will do that and let you know

cerulean shale
#

๐Ÿ‘

#

Also trying a different Visa/Mastercard in your GPay wallet would be worth testing if you have one

formal lantern
#

okay great. will let you know once i am done with that

formal lantern
#

hey, i have an old phone which does not support my current sim card. so unable to check on other device ๐Ÿ˜ฆ

cerulean shale
#

Hmm can it connect to wifi? Might not need a sim?

formal lantern
#

to verify gpay account, it needs active sim card on the using device

cerulean shale
#

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?

formal lantern
#

i tried adding a card, still doesn't work

cerulean shale
#

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.

formal lantern
#

okay great. thanks for all your help

#

your dev team is absolutely amazing

cerulean shale
#

Sorry we couldn't get to the bottom of it here!

formal lantern
#

No problem!

#

have a great day!