#cavint9510
1 messages · Page 1 of 1 (latest)
Yes! For subscription with trial (first invoice is $0), a pending_setup_intent will be created. So the steps will be:
- Create a subscription with trial and expand
pending_setup_intentfield - Return the client secret from
pending_setup_intent.client_secretto the client - Payment Element renders from the client secret in Step 2
- Use
stripe.confirmSetup(..)to complete the payment method collection
Okay, now I'll try
I have another question. I want to start the trial after collecting the user's credit card and other information, and the subscription fee will be deducted automatically after the trial period. What should I Do (stripe element)
When you create the subscription with collection_method: 'charge_automatically' (default), Stripe will deduct from the saved payment method automatically after the trial ends