#bragma_best-practices

1 messages ¡ Page 1 of 1 (latest)

late inletBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

swift kraken
#

hi there!

#

you would make an extra API call to update the PaymentIntent on the Invoice.

warped crane
#

You mean an update call?

swift kraken
#

correct

warped crane
#

Ok, that's really annoying but I'll try it. I was checking the infinite list of options but I didn't consider this. Thanks!

swift kraken
#

haha, no worries! and yes that's the only option to achieve this.

warped crane
#

Ok, since I am here I'll ask another question: is there any con in always using "off_session"? I may not always require it

swift kraken
#

where exactly do you want to use this parameter?

warped crane
#

I'd like to setup payments for off session charges. My idea is to add this when I create invoices and/or subscriptions for customers

#

This does not mean that I'll make off session charges on each customer, but it may happen on some

swift kraken
#

Invoice and Subscription don't have a off_session parameter, so I'm a bit confused. maybe you meant on the PaymentIntents?
in general, using off_session means Stripe will tell banks that the customer is not on session for optimization purposes. so you should only use off_session if the customer is actually off_session.

warped crane
#

Yes, I mean the paymentintent associated to an invoice I create (or created by a subscription)

#

Oh, and i mean in the "setup_future_usage"

#

Ok, I made a confusing explanation

swift kraken
#

Yes, I mean the paymentintent associated to an invoice I create (or created by a subscription)
got it

warped crane
#

Of course, I set "on_session" and "off_session" depending on the specific type of the request

#

But I was asking about setting the setup as "off_session" on PI

swift kraken
#

But I was asking about setting the setup as "off_session" on PI
what do you mean by "setting the setup"? do you mean setting setup_future_usage: off_session or off_session: true, or something else?

warped crane
#

Right, let me explain

#

off_session: true/false will be set differently on each invoice/subscription creation, depending if the user is on or off session in that specific flow

#

But my idea is always to set setup_future_usage: "off_session" on all PI associated to my invoices/subscriptions, so that if during the flow a default payment method is added (maybe using 3DS), that will be enabled for off_session, should I need it

#

Question is if setting setup_future_usage: "off_session" on PIs may have any drawback

swift kraken
#

got it. yes I think that makes sense. there are no drawbacks to this that I'm aware.

#

you may just need to make sure your user are aware that you are saving their card for future use.

warped crane
#

Sure

#

Thanks a lot you are awesome!