#ZakMcKraken
1 messages · Page 1 of 1 (latest)
Hello 👋
Are there any docs you're following for this?
I didn't really find a specific one for that use case. I've followed this one: https://stripe.com/docs/payments/finalize-payments-on-the-server?platform=web&type=setup, and I'm basically at step 8 wondering if I need to actually do a PaymentIntent if we are using the Invoice method I described earlier.
I see.
So basically there are a couple of options with PaymentElement.
1/ Creating SetupIntent and then using it to collect a PaymentMethod. Once you do that, you can set it to customer.invoice_settings.default_payment_method
https://stripe.com/docs/payments/save-and-reuse
The other option
2/ Creating PaymentMethod using PaymentElement, confirm SetupIntent and then setting created PaymentMethod as customer.invoice_settings.default_payment_method
https://stripe.com/docs/payments/accept-a-payment-deferred
In both cases, once you set it as default payment method for invoices then invoice will charge that payment method automatically once finalized
So looks like I’ve started option 2 right? Confirm setup intent server side and then create the invoice.
Correct. You don't need to create a separate payment intent since you're creating an invoice
Thanks! Very helpful