#mike-j_api

1 messages ¡ Page 1 of 1 (latest)

woven roseBOT
#

👋 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/1303358088996458506

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

calm ridge
#

hi! do you happen to have a link to the page where this is happening?

if not, how do you integrate, do you create a PaymentIntent directly or do use the "deferred" integration?

thick geyser
#

Our backend requests a paymentintent or setupintent from Stripe, and the response is passed to our frontend which gets and displays the stripe checkout.

#

Unfortunately you'ld need to sign up as a customer to see the actual payment page, sorry.

calm ridge
#

no worries, in that can you share the ID pi_xxx of a PaymentIntent from a time when you have reproduced only seeing cards?

thick geyser
#

pi_3QHlwdJk75hPCxYy0shEB8P5

#

Would it be the "payment_method_types" field getting in the way?

calm ridge
#

yes

#

you explicitly pass payment_method_types=>["card"] so that's why it's all you get

thick geyser
#

Will it work if I simply remove that field?

calm ridge
#

normally yes but for you no since you're on an old API version. Replace it with "automatic_payment_methods"=>["enabled"=>true]

#

the other factor is you're using on_behalf_of which is going to have some impact on what methods are available, but we can cross that bridge when we come to it

thick geyser
#

OK, let me do a quick test this end

#

When I say quick, this is a slow laptop... getting there. I'll get the exact pi id as well

#

Interesting - I thought auto payment methods was true, but it's false. Simply setting it to true and I now see the other payment options. As simple as that. What impact will on behalf of have?

#

pi_3QHnYeJk75hPCxYy1yBn2oma also

calm ridge
thick geyser
#

OK. Cool - I think others higher up the stripe foodchain than me will be taking care of that. I think this gets us going. Thanks!