#vasant-dhatrak_code
1 messages · Page 1 of 1 (latest)
👋 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.
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.
- vasant-dhatrak_code, 22 minutes ago, 47 messages
- vasant-dhatrak_code, 23 hours ago, 7 messages
- vasant-dhatrak_code, 1 day ago, 33 messages
- vasant-dhatrak_api, 6 days ago, 12 messages
failed in google pay using stripe
What does that mean exactly? Is there an error? What's the behaviour?
can you please check on your mobile
I see Google Pay. Are you located in India?
yes
but i tested with my vpn in germany
Popup msg
request failed
we coudlnot complete your request try again later
Yeah I just don't think it works with VPNs really
can you check at your end please
Check what? I already told you it works:
yes click on pay
No I can't do that I'm afraid, it'll share personal details from my wallet
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
but i am able to make payment through paypal but not from googlepay
no response from your team
What's the actual error you're seeing in the console?
in mobile how can i see in console
Remote debug live content on an Android device from a Windows, Mac, or Linux computer.
TypeError: Failed to execute 'json' on 'Response': body stream already read
at testing_express_checkout.js:92:51
Can you share the code from the lines quoted in the error?
const {client_secret: clientSecret} = await res.json();
but this line from your documentation
and it is working for paypal
Let's just share the full code please
const res = await fetch('https://www.gurado.de/Testing_google_pay/public/create-intent.php', {
method: 'POST',
headers: {
"Content-Type": "application/json; charset=utf-8"
},
body: JSON.stringify(userData)
});
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',
},
});
hi! I'm taking over this thread. give me a few minutes to catchup.
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.
but i am using vpn
I don't think that changes anything for this.
can you please check at your end once
I see the same a ynnoj.
so you have any runable code
Google pay supported in india
i already use it daily
Google Pay and Apple Pay unavailable for merchants and customers in India
but button is show after click on button popup shows to confirm transaction
can you click on this link and pay test transaction
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).
problem created after pay
so how can we test the issue
I'm not sure I understand your question, sorry. like I said it's not really possible to test Google Pay from India.
console.log(res.json());
const {client_secret: clientSecret} = await res.json();
may be i added console before taking client_secret