#Babu Munavarbasha-payment-request-button

1 messages · Page 1 of 1 (latest)

storm raptor
#

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

scarlet relic
#

Even if i use a real card it gives me the same error

storm raptor
#

Can you give me the request id

scarlet relic
#

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

storm raptor
#

You must provide a value for 'customer'

scarlet relic
#

The stripe examples doesnt have them

storm raptor
scarlet relic
#

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

storm raptor
#

Hi, my colleague will be here soon. We may need to test this ourself

scarlet relic
#

okay

obtuse copper
#

hi there, stepping in on behalf of orakaro, give me a while to test this and get back to you

scarlet relic
#

Thanks @obtuse copper

obtuse copper
#

hmmm, i don't think it's the automatic payment method causing problems. I tried without it and it works. Still 👀

scarlet relic
#

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

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

scarlet relic
#

@obtuse copper - I have sent an email to support@stripe.com which i believe created a support ticket

obtuse copper
#

yep, i see it, I'll get back to you on the support ticket once I have an update

obtuse copper
#

@scarlet relic could you share your test website so that we can try it out there? We're unable to replicate this

scarlet relic
#

@obtuse copper

#

Click on stripe

old echo
#

Hi @scarlet relic I'm also an engineer from Stripe, I'm getting 404 after opening the link

scarlet relic
#

@old echo

#

can u try this

old echo
#

Same 404

obtuse copper
#

it's the same issue, it shows theclinic... for a while, then shows an error 404

scarlet relic
#

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

old echo
#

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

scarlet relic
#

The payment element Google pay is not enabled for me

old echo
#

The payment element can also offers the Google Pay option, so it's not necessary to have another Google Pay option.

scarlet relic
#

Does Payment element offer Apple Pay as well

old echo
#

Yes

#

Do you have an active card in your Google Pay account?

scarlet relic
#

Yes I do thats why I see G Pay - Payment request button

#

but not payment element

#

@old echo - this is my view

old echo
#

Are you testing from India?

scarlet relic
#

Yes

#

The card added is From SG

old echo
#

I see, The PaymentElement Google Pay option is not available in India

#

https://support.stripe.com/questions/supported-payment-methods-currencies-and-businesses-for-stripe-accounts-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.
scarlet relic
#

okay, even in Singapore, I dont see Google pay option in Payment element

old echo
#

Google Pay option is available for customers in Singapore.

scarlet relic
#

But only through payment request option or through payment element as well?

#

Cos I dont see it

#

Apologies

old echo
#

Through Payment Element. Because you are currently in India, that's why you don't see GPay in payment element.

scarlet relic
#

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

obtuse copper
scarlet relic
#

Awesome, thanks guys! The support and the discord chat is super responsive and helpful. 5 star for you guys!

old echo
scarlet relic
#

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}}',
});

obtuse copper
#

are you creating direct charges?