#Carlos Mascarenhas-trial-sub-pi
1 messages · Page 1 of 1 (latest)
Hey! Correct, as there's no immediate payment due there will be a pending_setup_intent field instead: https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
You'd confirm that Setup Intent on with confirmSetup from Stripe.js to carry out any required auth on the payment method to authorise future off-session payments
This was my question, because to use confirmCardPayment I need clientSecret, in which case I should use confirmSetup?
Yep! You'll want confirmSetup (if you're using Payment Element) when it's a Setup Intent
There's still a client_secret field on the Setup Intent object which you'll need
But when a trial-type subscription is created there is no client_secret
subscription normal, json returned
you need to expand pending_setup_intent