#ZakMcKraken

1 messages · Page 1 of 1 (latest)

eager moonBOT
fickle narwhal
#

Hello 👋
Are there any docs you're following for this?

wraith shuttle
fickle narwhal
#

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

wraith shuttle
#

So looks like I’ve started option 2 right? Confirm setup intent server side and then create the invoice.

fickle narwhal
#

Correct. You don't need to create a separate payment intent since you're creating an invoice

wraith shuttle
#

Thanks! Very helpful