#cavint9510

1 messages · Page 1 of 1 (latest)

worthy domeBOT
covert edge
#

Hi there!

violet marlin
#

hey

covert edge
#

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

violet marlin
#

So what you're saying is, I don't have to create setoutIntent before.I can just create subscription,right?

covert edge
#

Yes, it's much better to directly create the subscription, and use the SetupIntent automatically created for you.

violet marlin
#

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?

covert edge
#
  1. You create the Subscription
  2. you collect car info with Stripe Element and the SetupIntent that comes from the subscription
violet marlin
#

Ok, I see what you mean. I'll try it now.

#

thanks bro