#VisionADdyOP
1 messages · Page 1 of 1 (latest)
I am talking about the subscription
Hello! Can you provide more details? Are you asking about how to collect payment info up front when the trial starts without charging them until later, or are you asking about how to collect payment info later after the trial ends?
Suppose we give 14 days trial to customer if that card need confirmation from client but initially we are not charging to customer. Then how to handle this case
The Subscription has a pending_setup_intent you can use to set their card up for future use: https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
Have a look at the Free trial tab here: https://stripe.com/docs/billing/subscriptions/designing-integration#subscription-models
If we given trial to customer then what we have to do actually I have default payment method already but how to confirm client secret as it's trial
When you create a Subscription with a trial it will have a pending_setup_intent. That Setup Intent will have a client secret.
We can confirm that from client side right ?
Yes.
Can you share code how to confirm that client secret if we are giving initially trial
There's example code here, in our Setup Intents guide: https://stripe.com/docs/payments/save-and-reuse
When we actually subscribed to subscription then also will get client secret right
Each Subscription period an Invoice will be created. If the Invoice requires payment it will create a Payment Intent, and each of those Payment Intents will have a client secret. However, for Subscriptions, what usually happens is that those Payment Intents are automatically paid without you or your customer having to do anything.
Yes, to set up their payment info for future use.
Ya that only i am saying so if we added trial initially while creating a subscription them also can we confirm client secret manually from front end for first time ?
From the Setup Intent you mean?
Yes?
In subscription object will get payment intent object right
Inside that we have client secret
Yeah, that one is confirmed client-side by the customer typically.
No, you won't get a Payment Intent.
Payment Intents are for when payment is required.
A Subscription with a free trial is free. There's no payment required.
In that case you'll use the Setup Intent inside pending_setup_intent instead.
A Setup Intent is for collecting and setting up payment info for future use without immediate payment.
The Payment Intents come later, after the trial ends and there's actually something to pay.
Will get all info in subscription object
What is "all info"?