#cashiersprit
1 messages · Page 1 of 1 (latest)
Hello! You can set up SEPA for future payments. It sounds like you need to add sepa_debit when creating the Payment Intent. Payment Intents default to card only unless you specify additional payment methods using payment_method_types: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
Alternatively, you can use automatic_payment_methods: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-automatic_payment_methods
yes, my is automatic
{
"currency": "usd",
"automatic_payment_methods": {
"enabled": "true"
},
"amount": "1000",
"secret_key_confirmation": "required"
}
we always use automatic
You did not set automatic_payment_methods when you created that Payment Intent. See here: https://dashboard.stripe.com/test/logs/req_NOq9Ob3tGJDOkk
but this is update payment intent. we always set "automatic_payment_methods": {
"enabled": "true"
}, when create payment intent
automatic_payment_methods needed for create payment intent, not for update payment intent? I am confused now
That linked request that my colleague provided isn't an update request it's a creation request. Notice how a payment intent id isn't included in the request uri. So, you'll need to pass automatic payment methods to true
ah, sorry about that. let me check again
all good. it works for me. sorry, I wrote the code too long times ago. I forgot to charge with the saved payment method is actually create a payment intent 😂
thanks for all your help
No problem! Happy to help