#soumya
1 messages · Page 1 of 1 (latest)
hey there, you didn't respond when we asked you for more information earlier
Can you explain some context and what you're trying to do?
Are you referring to the usage parameter?
WHere do you see that?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can u give an example here to unerstand clearly
confused about when it should be used
Hello ?
am i clear now?
That's payment method types
No, i don't understand what you need yet
Are you asking about the usage parameter?
yes
when do we use off_session and on_session values in usage paramters the docs explaination is not that great
on or off session is about how you will be taking payments later. Will you customer be "on session" (in your app, on your website etc) when you trigger payments, and will be able to handle authentication if needed?
If you will create payments in the background without the customer "online" then this would be off session.
(the customer is not available to handle authentication requests etc)
if we keep it off_session and if card required 3ds authentication will the card added successfully?
Your customer would complete 3ds during setup
by defualt what is the value of usage?
If it was required later using an off session payment, the payment would fail as declined with authentication_required
https://stripe.com/docs/error-codes
https://stripe.com/docs/api/setup_intents/create#create_setup_intent-usage
usage
optional enum
Indicates how the payment method is intended to be used in the future. If not provided, this value defaults to off_session.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
for subscription renewal will this effect anything because we will just receive an event from stripe when renewal happens
because this will be a background event
Yes, those are off session. If you use the setup/payment intent created by the subscription for you, it will be configured as needed
If you create you own setup intents before subscriptions, use usage=off_session
Okay
we are using setup intent to add cards and then subscribe the user to plan
by defualt will it be off_session?
Yes, thats the documented default
I would recommend you test your integration throughly
Okay