#ivan26-subscription

1 messages · Page 1 of 1 (latest)

fading mantle
#

A SetupIntent has a client_secret, that you can use on the frontend with the Payment Element to collect the payment informaiton.

ebon smelt
#

Okayyy thanksssss so much, but this field pending_setup_intent should be filled automatically after I create the trial period subscription??

fading mantle
#

Yes

ebon smelt
#

Or I need to genereate the setup intent... I don't understand the behaviour

fading mantle
#

This is done automatically for you (if you are using a free trial)

ebon smelt
#

perfecttt

#

and then front must use this intent??

fading mantle
#

Yes, the frontend use the pending_setup_intent.client_secret to collect payment information (without doing any charge).

ebon smelt
#

and it is no way to make it through checkout??

#

avoid frontend this job??

fading mantle
#

Yes you could create the subscription directly with Checkout Session and with a trial period. This way Checkout will take care of collecting the payment information directly.

ebon smelt
#

ohhh that sounds perfect

#

i try to do it

#

thanks so much again

fading mantle
#

Happy to help 🙂

ebon smelt
#

perfectlyy perfecttt