#magius_api

1 messages ยท Page 1 of 1 (latest)

untold lindenBOT
#

๐Ÿ‘‹ 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/1296780700766441574

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

loud pier
long oak
#

Thank you for confirming - I didn't know what that note was telling me since other docs https://docs.stripe.com/payments/bancontact/set-up-payment?locale=en-GB talk about using one to set up the other

Since it's expected than bancontact wouldn't show for a PaymentIntent with on session future usage, what's the right way to handle this? Should we always use off session future usage? Should we avoid updating the PaymentIntent to set the usage until the user's ready to pay?

loud pier
#

In general, you should update the PaymentIntent according to the needed scenario and the payment Element will adapt and display the available options.

long oak
#

Is there a best practice around the case where the user is making a decision about saving the method or not?
We're not sure if the future usage will be 'none' or something else because the user decides that - but we know that, if they are going to save the method, it'll only be needed on session

I'm worried that it'll confuse people to have the available options change suddenly when they check a box - but we could maybe fix that by not updating the PaymentIntent immediately

untold lindenBOT
rocky kayak
long oak
#

We create just the one PaymentIntent for the checkout flow (i.e. a new intent per user per checkout) which in this market includes options for Card, Bancontact, and iDEAL. If paying by card, we show the checkbox to allow users to save the card for later. Once the checkbox is ticked, bancontact and iDEAL disappear (as expected) because we update the intent immediately
Is it good practice to create multiple intents here? One for card, and one for the rest which doesn't support on session future usage?

rocky kayak
#

Did you read the parameter I just shared you? If the user ticks the box to save the PM, then instead of instead of updating the top-level s_f_u parameter on the intent (which will disable any PMs that don't support it) update the card specific s_f_u parameter

#

That's the parameter I shared above

long oak
#

oh I'm sorry - my brain didn't register the difference when I looked at it ๐Ÿ˜ฆ
I understand how this can help me now, so I'm happy to go away and try it out

rocky kayak
#

np, let me know how you get on

long oak
#

Quick update - it's going to take a little longer to check this because of other flows that use the same logic in our BE

If it's easier on your side I'm happy to carry on with this, and raise a new q if I run into any other problem (though I'm quietly confident you've given me just what I needed). Otherwise I'll feed back here soon as I can

Thank you both for your help ๐Ÿ™‚