#Sairony-trials

1 messages · Page 1 of 1 (latest)

ashen plover
#

hi! we support that yes. You can enter payment information at any time in the trial

#

instead requiring the user to enter it once the trial is over.
I'd actually say the opposite, what happens in Stripe is if you haven't added payment information by the end of the trial, an invoice is generated and fails to be paid, and that can end up cancelling the subscription since it's unpaid

#

you can also collect payment information at the start of the trial if you want

#

if you use our default integration of Checkout that's exactly what it does

icy breach
#

Ah, I associated a trial_days in the metadata of the price, I then use trial_period_days when I create the subscription, but doing this doesn't give me a client secret which I can use to take user to the payment page. We sadly don't use Checkout since we have slightly different flow for selecting plans & customization.

#

Currently the subscription starts in the incomplete state, at which point we use the payment elements to collect payment details, as seems to be the standard for that work flow. Perhaps the subscription flow becomes slightly different when using trials then?

ashen plover
#

when I create the subscription, but doing this doesn't give me a client secret which I can use to take user to the payment page
it creates a pending_setup_intent

#

that has a client secret and you use that on the frontend with confirmSetup instead to collect card details

#

you could also just use a SetupIntent upfront to collect card details, and only create the Subscription with the trial period after that

icy breach
#

Cool, thanks a ton, I'll have a look in that direction