#ketaaa-SEPA

1 messages ยท Page 1 of 1 (latest)

somber cedar
#

hello! where are you seeing The PaymentMethod provided (sepa_debit) is not allowed for this PaymentIntent?

#

do you have the request id where you see that error? or the PaymentIntent where you encountered that error?

flint schooner
#

req_8FkEC62Cczjmff

#

here is the request ID

#

my request body contains the "off_session" and "confirm" flag to true, working fine with credit card

somber cedar
#

you passed in

    enabled: "false"
  },```. And since you didn't specify `payment_method_types` - it will default to ` [โ€œcardโ€]`
#

that's why you can't use SEPA for that PaymentIntent

flint schooner
#

so i have to pass sepa_debit on this body request?

#

or enable true will enable all?

#

You must provide a return_url when confirming using automatic_payment_methods[enabled]=true.

#

i just want the same behavior with credit card but working with sepa ๐Ÿ˜„

somber cedar
#

then try passing in sepa_debit as a payment method type and see if that works for you

flint schooner
#

trying now

#

i think it works

#

can we keep this ticket open ?

#

so i will update if i encounter any other problem

somber cedar
#

the thread will be closed after a while. If you have a new problem feel free to ask again in the channel ๐Ÿ˜„

flint schooner
#

okay thanks

flint schooner
#

it seems I can't do an offline payment setting automatic_payment_methods['enabled] = false

#

and setting payment_method_options

#

in the request

somber cedar
#

what's the request id?

flint schooner
#

req_EOgljDW9A6hesK

#

and if i'm not setting the automatic_payment_methods flag, my application throw an error so i'm kinda stuck

somber cedar
#

remove automatic_payment_methods i.e. don't include it in the request at all if you're specifying payment_method_types

flint schooner
#

okay

#

thanks

#

checking

#

any other way to use automatic_payment_methods flag?

#

Because I have this code in my application (developped by stripe team)

#

to check if a payment intent is valid or not

somber cedar
#

i'm not sure i understand, how does that code snippet check if a PaymentIntent is valid? What is a valid PaymentIntent?

flint schooner
#

Anyway I think it's out of your scope

#

I will do a modification other here

#

and I think it will work

somber cedar
#

alright, let me know if you have any other questions