#JontyBehr
1 messages ยท Page 1 of 1 (latest)
Hello ๐
If you have a trial then the Subscription object should have a pending_setup_intent already created which you can use to collect the PaymentMethod from your customer
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
According to this, we should be using SetupIntents: https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-2
That is if your customers are off-session already and you're trying to create a subscription for them
I assume your customers are on-session when they sign up for a subscription, correct?
Yes, that's correct
Gotcha, so in that case hanzo was reccommending you create the subscription first and then use the pending_setup_intent that it generates to collect the new card details. You could also follow your guide though, if I understand you correctly that should achieve the same thing as long as you are creating a subscription with a trial.