#tjon_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1357000727653777701
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Weird error message
Looking
it is indeed a card
Can you share your code for creating the confirmation token?
Actually check your Elements initialization options: https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#additional-options
Likely you are passing payment_method_options[us_bank_account][verification_method] there
If you are, then it gets passed through to the confirmation token creation request: https://dashboard.stripe.com/logs/req_337nzJYwz5X8Jm
Which, even though the confirmation token is a card, still gets passed through and causes the error in the setupintent creation request
So really, you should only pass payment_method_options[us_bank_account][verification_method] in elements options when collecting us_bank_account
ok how would i be able to check that when i go to create the confirmation token
*that is indeed what i am doing
when creating the element we set it tat way so if they choose bankaccount they only have the instant options but from the sounds of things we would then need to remove that when we process a card
The easiest way to fix would be to set verification method to automatic on the setupintent as well: https://docs.stripe.com/api/setup_intents/create#create_setup_intent-payment_method_options-us_bank_account-verification_method
Since instant is the default
The error is there because of the mismatch
this is interesting
ive got another similar error but on payment intents
with the instant and automatic flipped
req_ApH34P2IYl2FZp
Weird
You didn't pass verification_method at all in the confirmation token with that one: https://dashboard.stripe.com/logs/req_w2VSIgybmEi0wp