#mike-j_api
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/1303358088996458506
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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?
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.
no worries, in that can you share the ID pi_xxx of a PaymentIntent from a time when you have reproduced only seeing cards?
pi_3QHlwdJk75hPCxYy0shEB8P5
Would it be the "payment_method_types" field getting in the way?
yes
you explicitly pass payment_method_types=>["card"] so that's why it's all you get
Will it work if I simply remove that field?
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
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
it makes the connected account the "settlement merchant" which means that the connected account needs to be onboarded to a method (https://docs.stripe.com/connect/account-capabilities#payment-methods) in order for it to be possible to show
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!