#s_cloaked_43543
1 messages · Page 1 of 1 (latest)
Hello
If you start a Subscription and the initial Invoice is $0 then there will be a pending_setup_intent (https://stripe.com/docs/api/subscriptions/object#subscription_object-pending_setup_intent) that you want to use to set up the PaymentMethod for the recurring payment.
So basically instead of expanding the latest_invoice.payment_intent and grabbing the client secret from there, you just expand the pending_setup_intent and grab the pending_setup_intent.client_secret and pass that to your frontend