#VisionADdyOP

1 messages · Page 1 of 1 (latest)

sullen orbitBOT
fervent wedge
#

I am talking about the subscription

charred lodge
#

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?

fervent wedge
#

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

charred lodge
fervent wedge
#

Can you explain steps what to actually have to do

#

In trial subscription case

charred lodge
fervent wedge
#

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

charred lodge
#

When you create a Subscription with a trial it will have a pending_setup_intent. That Setup Intent will have a client secret.

fervent wedge
#

We can confirm that from client side right ?

charred lodge
#

Yes.

fervent wedge
#

Can you share code how to confirm that client secret if we are giving initially trial

charred lodge
fervent wedge
#

When we actually subscribed to subscription then also will get client secret right

charred lodge
#

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.

fervent wedge
#

But for first time we need to confirm right ?

#

Manually from front ens

charred lodge
#

Yes, to set up their payment info for future use.

fervent wedge
#

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 ?

charred lodge
#

From the Setup Intent you mean?

fervent wedge
#

Yes?

#

In subscription object will get payment intent object right

#

Inside that we have client secret

charred lodge
#

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.

fervent wedge
#

Will get all info in subscription object

charred lodge
#

What is "all info"?

fervent wedge
#

Actually se when we create a subscription and added a 14 days trial ok

#

Then what we have to do next ?

charred lodge
#

Sorry, we seem to be going in circles.

#

I've explained that when a Subscription has a trial there is no Payment Intent, you get a Setup Intent instead, and use that to set up payment info for later when a payment is required.