#almond-trial-charge
1 messages · Page 1 of 1 (latest)
@near summit if you have a trial, you want to use the pending_setup_intent instead and complete that to collect card details
Thanks, but pending_setup_intent not found in https://stripe.com/docs/api/subscriptions/create, I found it in https://stripe.com/docs/api/subscriptions/object
correct that's on the response after creation
So I can use this parameter when creating subscription, I guess the doc need to more specific in "create" section
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
Then I pass pending_setup_intent.client_secret to frontend to call stripe.confirmCardSetup, right?
yes
Got it, thank you!!!