#heshiebee-subscription-trial

1 messages · Page 1 of 1 (latest)

radiant lintel
#

A Payment Intent will be created for the next Invoice, so you just have to create their Payment Method and add it to the Subscription at some point before the next Invoice is generated(e.g. before the next billing cycle)

glad vessel
#

There is no way to attach it at subscription creation?

radiant lintel
#

You can, assuming you mean when the Subscription is first created and the trial is set. If you want to do it at some point after the first Subscription is created (and trialing) then you would have to update the Subscription. And if you set is as the default Payment Method for that Subscription it will carry over to the non-zero Payment Intents that are charged later on.

glad vessel
#

But if the invoice is $0 it won't allow me to create that intent

#

Imagine a flow where on the FE I want to show a user a CC form when starting the trial

radiant lintel
#

Why do you need to create a Payment Intent?

glad vessel
#

For the CC form

radiant lintel
#

Just create the Payment Method and add it to the Customer for the Subscription without creating a Payment Intent

glad vessel
#

Can that be done on the FE alone?

#

Or would that be another BE FE interaction?

radiant lintel
#

Can you define BE and FE?

glad vessel
#

Server and client

#

Backend and the front end

glossy moon
#

👋 stepping in here as two-shoes needed to step away.

#

You can use this SetupIntent to collect a PaymentMethod using Payment Element or Card Element.

glad vessel
#

Can u share a link please?

glossy moon
#

So in that guide you can ignore the steps to create a customer and create a SetupIntent as you will already have done those things.

#

Then you use the SetupIntent that was created from the Subscription and provide the client_secret to your frontend to render Payment Element

glad vessel
#

Thx so much