#almond-trial-charge

1 messages · Page 1 of 1 (latest)

potent garnet
#

@near summit if you have a trial, you want to use the pending_setup_intent instead and complete that to collect card details

near summit
potent garnet
#

correct that's on the response after creation

near summit
#

So I can use this parameter when creating subscription, I guess the doc need to more specific in "create" section

potent garnet
#

there's no parameter so no

#

sorry you're misunderstanding this

#

you create the subscription, and in the response you see that pending_setup_intent is set and you can complete that instead of the PaymentIntent associated for the latest_invoice

#

we don't document this well. But today without a trial you get an invoice for say $100 and you expand it and its PaymentIntent, you get to its client_secret and confirm that.

#

with a trial, there's no PaymentIntent as the first invoice is for $0, so you get pending_setup_intent, with its own client_secret and you complete that

near summit
#

Then I pass pending_setup_intent.client_secret to frontend to call stripe.confirmCardSetup, right?

potent garnet
#

yes

near summit
#

Got it, thank you!!!