#luxia_anon
1 messages · Page 1 of 1 (latest)
I wish my code be somewhat the same to handle both SEPA and BACS in the server side. But I can't figure it out with the doc. 😦
hi! as far as I know it would work the same as SEPA. You create an Invoice later when you are doing the payment, and you call https://stripe.com/docs/api/invoices/pay#pay_invoice-payment_method with the PaymentMethod you saved with Checkout(https://stripe.com/docs/payments/bacs-debit/save-bank-details), or you confirm the Invoice's PaymentIntent with it.
Ok ! What's the difference between using invoices methods or PaymentIntents please ?
sorry if it's crystal clear for you ^^'
all payments use PaymentIntents; the Invoice creates a PaymentIntent. Usually I'd say it's better to confirm the Invoice's PaymentIntent than to call the Invoice Pay endpoint, but for these payment methods it doesn't really matter(the main advantage is that it's easier to handle errors or 3D Secure requests when confirming the PaymentIntent directly but that is only relevant for cards really).