#mochihealth

1 messages · Page 1 of 1 (latest)

oblique larkBOT
steep pendant
#

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

jade valley
#

but usually i call the confirm payment api on the frontend does that mean i would call the confirmSetup api instead?

steep pendant
#

That's correct

jade valley
#

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?

steep pendant