#blueish
1 messages · Page 1 of 1 (latest)
👋 Bancontact is a single-use payment method so you won't be able to use setup_future_usage with this payment method type (correction: you'll need to use SEPA if you want to use setup_future_usage with Bancontact)
Recurring payments require using SEPA: https://stripe.com/docs/payments/bancontact/save-during-payment
then why the Payment Element is showing this as an option when I use SetupIntent to initialize payment element?
can't payment element automatically filter out payment methods that can't be used for future use?
Can you share the request ID for the request that returned the error above? https://support.stripe.com/questions/finding-the-id-for-an-api-request
You should be able to use bancontact as a payment method type for SetupIntents as long as SEPA is enabled for your account
Okay, I see the PaymentMethod was created as part of a SetupIntent and you're attempting to attach the PaymentMethod to a customer after having confirmed the SetupIntent
Is there a particular reason why the customer ID wasn't included in the call to create the SetupIntent?
I thought im including the customer id
Is there a problem here?
Map<String, Object> automaticPaymentMethods = new HashMap<>();
automaticPaymentMethods.put("enabled", true);
Map<String, Object> setupIntentParams = new HashMap<>();
setupIntentParams.put("customer", customer.getId());
setupIntentParams.put("automatic_payment_methods", automaticPaymentMethods);
SetupIntent setupIntent = SetupIntent.create(setupIntentParams, requestOptions);
Ah, okay, you're right. I see you passed a customer ID when creating the SetupIntent. That means there shouldn't be a reason to make a separate call to attach the PaymentMethod to this same customer.
does that mean that after the redirection to the return url and if it's succeed then it's already attached?
Yep, it should be!