#mochihealth
1 messages · Page 1 of 1 (latest)
Hi 👋 it sounds like the amount of the first payment is being reduced to zero, in which case you're correct that a Payment Intent is not created.
When a Payment Intent isn't created for the first Invoice of a Subscription, the Subscription's pending_setup_intent field should be populated with the ID of a Setup Intent that could be used for collecting payment method details and preparing a Payment Method for future usage:
https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent
but usually i call the confirm payment api on the frontend does that mean i would call the confirmSetup api instead?
That's correct
ok thanks
and i also pass that same secret to the elements component on the frontend because before i was passing the client_secret that i got back as one of the options?
The Setup Intent will also have a client secret, that is what you'll want to pass to your frontend and use to call confirmSetup
https://stripe.com/docs/api/setup_intents/object#setup_intent_object-client_secret