#Babu Munavarbasha-payment-request-button
1 messages · Page 1 of 1 (latest)
To test GooglePay (or ApplePay) you would need to use a real card, but with a test Publishable Key so it will never be charged
Even if i use a real card it gives me the same error
Can you give me the request id
Let me try again and get back. The last one seem to have worked. Also Do I need to add the apple domain association for every connected account?>
Here is the request
its giving a 400 error
@storm raptor
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You must provide a value for 'customer'
The stripe examples doesnt have them
Are you following this? https://stripe.com/docs/stripe-js/elements/payment-request-button
That and this github repo
both the places, there is no customer being set
the only difference is, My payment intent has automatic payment method set
Is that whats causing this
@storm raptor
Hi, my colleague will be here soon. We may need to test this ourself
okay
hi there, stepping in on behalf of orakaro, give me a while to test this and get back to you
Thanks @obtuse copper
hmmm, i don't think it's the automatic payment method causing problems. I tried without it and it works. Still 👀
What could be the issue
Btw i am trying google pay
Also I am not passing any payment method type in the payment intent request and only automatic payment method
@obtuse copper
nothing is immediately standing out to me as to what could be causing this. Can you write in to Stripe Support with the request id and we'll get back to you after investigating? Let me know once you've written in and I'll take that ticket
@obtuse copper - I have sent an email to support@stripe.com which i believe created a support ticket
yep, i see it, I'll get back to you on the support ticket once I have an update
@scarlet relic could you share your test website so that we can try it out there? We're unable to replicate this
Hi @scarlet relic I'm also an engineer from Stripe, I'm getting 404 after opening the link
Same 404
it's the same issue, it shows theclinic... for a while, then shows an error 404
Okay give me 5 mins i will deploy this on my dev server and give you another url
@obtuse copper and @old echo
Also the payment Intent is created with Stripe Connect
I'm able to load the page now but I see tow Google Pay buttons
It seems like you are using both Payment request button and Payment Element
The payment element Google pay is not enabled for me
The payment element can also offers the Google Pay option, so it's not necessary to have another Google Pay option.
Does Payment element offer Apple Pay as well
Yes I do thats why I see G Pay - Payment request button
but not payment element
@old echo - this is my view
Are you testing from India?
I see, The PaymentElement Google Pay option is not available in India
Google Pay and Apple Pay unavailable for merchants and customers in India on Stripe Checkout and Stripe Elements.
We currently do not support Google Pay and Apple Pay on Stripe Checkout and Elements for Stripe accounts and customers in India.
This entails that if your IP address is in India, you won’t be able to test a Google Pay or Apple Pay integration for a Stripe account based outside of India and accepting Google Pay or Apple Pay as a payment method.
Find help and support for Stripe. Our support center 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.
okay, even in Singapore, I dont see Google pay option in Payment element
Google Pay option is available for customers in Singapore.
But only through payment request option or through payment element as well?
Cos I dont see it
Apologies
Through Payment Element. Because you are currently in India, that's why you don't see GPay in payment element.
I do see it now
through my VPN connection
okay, so as per my understanding then Payment request button would be redundant
to implement
given elements already offering them
At the moment on the elements, I do confirm the payment element only once
unlike Payment request to open 3D or other redirections
would that be a problem or managed automatically by elements
3DS will be managed automatically by elements - you can test using cards here : https://stripe.com/docs/testing#regulatory-cards
Awesome, thanks guys! The support and the discord chat is super responsive and helpful. 5 star for you guys!
Welcome, btw. I'd suggest you to pass a customer to the payment intent. International payment requires customer info, see https://stripe.com/docs/india-accept-international-payments#international-payments-for-services
Probably this is cos of testing. We are building a global platform but we dont expect indian clinics to accept payments globally. But I will make a note of it.
@old echo and @obtuse copper - One question, Does this have to be done for apple pay - connected accounts?
var stripe = require("stripe")("sk_live_••••••••••••••••••••••••");
const domain = await stripe.applePayDomains.create({
domain_name: 'example.com',
},{
stripe_account: '{{CONNECTED_ACCOUNT_ID}}',
});
are you creating direct charges?
you don't need to create an ApplePay domain on the connected account unless you are using direct charges : https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect