#Constantin
1 messages · Page 1 of 1 (latest)
How are you creating your Payment Method objects?
Using the React SDK for Stripe (below the actual code from our frontend dev ^^)
const iban = elements.getElement(IbanElement);
if (!iban) throw new Error("IBAN element not found");
paymentMethodExt = await stripe.createPaymentMethod({
type: "sepa_debit",
sepa_debit: iban,
billing_details: {
name: iban_name as string,
email: iban_email as string,
},
});
Yep, you shouldn't do that. That flow won't generate the mandate required. You should use Setup Intents (or just create a subscription directly): https://stripe.com/docs/payments/sepa-debit/set-up-payment