#Alss
1 messages · Page 1 of 1 (latest)
it will be needed to directly generate new stripe subscriptions from a payment method. I won't have the information if the payment method has already been saved with an off_session configuration and I would like to be able to retrieve this information
Gotcha I understand. Just wondering how your code sets up these payment methods for future usage rn
Is it through SetupIntents?
If so you can filter setupintents by payment method and inspect the usage param: https://stripe.com/docs/api/setup_intents/list#list_setup_intents-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok thanks give me few minutes, Im checking
ok so it will return previous payment intent setups and indicate if the off_session parameter was activated ? right ?
yeah if you inspect usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If you use paymentintents and combine the call to setup future usage int he payment intent (instead of setupintent), then you'd need to list paymentintents and inspect this param instead: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok I see, and is it possible to switch the payment method customer to off_session from an api call ?
Not sure I understand the question
You want to change the default payment method for the customer?
I want to know if it is always possible to generate a subscription scheduled on the user payment method on off_session on demand ?
You can, but just know that the bank could require 3ds authentication even if setup for future usage
Some banks will do that more than others
ok and if the 3DS has already been accepted on a previous payment intent on the same payment method, then the future subscription scheduled should be captured without any additional 3DS ? right ?