#cavint9510
1 messages · Page 1 of 1 (latest)
Hi there!
hey
You could create a new Subscription and set the default_payment_method parameter https://stripe.com/docs/api/subscriptions/create?lang=dotnet#create_subscription-default_payment_method. However don't don't recommend doing this!
Instead you don't need to create a SetupIntent. You directly create the subscription with a free trial, and it will contain a SetupIntent that you can reuse in pending_setup_intent https://stripe.com/docs/api/subscriptions/object?lang=dotnet#subscription_object-pending_setup_intent
So what you're saying is, I don't have to create setoutIntent before.I can just create subscription,right?
Yes, it's much better to directly create the subscription, and use the SetupIntent automatically created for you.
emmm,but i need to collect customer card info,how can i do?
1.cutomer input card info(stripe element)
2.create subscription with free trial
3.free trial end,auto fee deduction
maybe,i need use paymentMethod api to collect customer card info?
- You create the Subscription
- you collect car info with Stripe Element and the SetupIntent that comes from the subscription
Or, if you don't want to create the Subscriptin first, you could follow this new guide: https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription