#jitendra
1 messages · Page 1 of 1 (latest)
https://stripe.com/docs/payments/sepa-debit/set-up-payment you should SetupIntent to collect a sepa_debit payment method so that you can use the payment method to create an off-session payment.
this is my payment flow for off_session payment
- Search customer by email and if not exist then create customer
- Search customer payment methods and if not exist then create a new payment method
- Create new paymentIntent with above customer id and payment method id
- For SEPA payment i am sending mandate_data, so Stripe will create new mandate for this payment method
- Now suppose next year when i try to do payment and follow same steps 1 to 4 then i not want to create a new mandate i want to use same mandate id which is created on step 4
i am taking sepa mandate offline through signed form from customer
Ok, so you are not collecting mandate online?
No
Ok. you can listen to the mandate.updated event to get the mandate object ID. You should save it in your own DB and use when it creating a new off-session PaymentIntent.