#vasant-dhatrak_code

1 messages · Page 1 of 1 (latest)

cosmic tokenBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1266352102188515392

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

limber riverBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

upbeat ferry
#

failed in google pay using stripe
What does that mean exactly? Is there an error? What's the behaviour?

fierce matrix
#

can you please check on your mobile

upbeat ferry
#

I see Google Pay. Are you located in India?

fierce matrix
#

yes

#

but i tested with my vpn in germany

#

Popup msg

request failed
we coudlnot complete your request try again later

upbeat ferry
#

Yeah I just don't think it works with VPNs really

fierce matrix
#

can you check at your end please

upbeat ferry
#

Check what? I already told you it works:

fierce matrix
#

yes click on pay

upbeat ferry
#

No I can't do that I'm afraid, it'll share personal details from my wallet

fierce matrix
#

no its all in testing mode

#

because actual problem is after pay button

upbeat ferry
#

It'll send transmit personal info (name, email, etc)

#

As I said, I expect the issue is related to your VPN

#

If not, please write in to our team with a working reproduction and details of the error and we can investigate: https://support.stripe.com/contact/email?topic=api_integration

fierce matrix
#

but i am able to make payment through paypal but not from googlepay

upbeat ferry
#

What's the actual error you're seeing in the console?

fierce matrix
#

in mobile how can i see in console

upbeat ferry
fierce matrix
#

TypeError: Failed to execute 'json' on 'Response': body stream already read
at testing_express_checkout.js:92:51

upbeat ferry
#

Can you share the code from the lines quoted in the error?

fierce matrix
#

const {client_secret: clientSecret} = await res.json();

#

but this line from your documentation

#

and it is working for paypal

upbeat ferry
#

Let's just share the full code please

fierce matrix
#

const {client_secret: clientSecret} = await res.json();

const {error} = await stripe.confirmPayment({
// elements instance used to create the Express Checkout Element
elements,
// clientSecret from the created PaymentIntent
clientSecret,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
});

vivid coyote
#

hi! I'm taking over this thread. give me a few minutes to catchup.

fierce matrix
#

ok

#

please do it fastly

vivid coyote
#

that code looks correct. if everything works expect Google Pay, then the issue is most likely because you are based in india where Google Pay isn't supported.

fierce matrix
#

but i am using vpn

vivid coyote
#

I don't think that changes anything for this.

fierce matrix
#

can you please check at your end once

vivid coyote
#

I see the same a ynnoj.

fierce matrix
#

so you have any runable code

fierce matrix
#

i already use it daily

vivid coyote
fierce matrix
#

can you click on this link and pay test transaction

vivid coyote
#

I see the button and the popup as expected. but I won't click on the pay button to not share any personal details (as mentioned earlier).

fierce matrix
#

so how can we test the issue

vivid coyote
#

I'm not sure I understand your question, sorry. like I said it's not really possible to test Google Pay from India.

fierce matrix
#

console.log(res.json());
const {client_secret: clientSecret} = await res.json();

may be i added console before taking client_secret