#smitit1999_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/1265243012859170836
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
have you seen this guide https://docs.stripe.com/payments/ach-debit ?
Hey @stray dune , thanks for the help!
Yes, I went through the testing section of the doc - https://docs.stripe.com/payments/ach-debit#testing-ach but couldn't seem to find the verification API. It mentions that we need to verify the bank account and the parameters that I need to pass but doesn't seem to mention the exact API for it
we will handle the verification for you if you're using Stripe.js or our hosted surfaces
As I mentioned, this is my backend testing setup, so there's no frontend involved
I need a payment method API equivalent of this API - https://docs.stripe.com/api/customer_bank_accounts/verify?lang=curl
I mean it depends on what exactly you're doing. For example normally the verification is done in the payment flow since the customer logs into their bank when you call stripe.collectBankAccountForPayment . What you're talking about is the fallback microdeposit verification.
Aah do you mean this - https://docs.stripe.com/api/payment_intents/verify_microdeposits?lang=curl?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Let me try this
I mean you need that _if _ you're using microdeposits, but that's not usually what you do
the guide is https://docs.stripe.com/payments/ach-debit/accept-a-payment?web-or-mobile=web&payments-ui-type=direct-api and you generally test by manually using the flow in your browser (we don't have good support for "backend integration tests" since you're not really mean to call our API in CI)
hmm, got it
@plain wadi I tried to verify microdeposits but it failed with an error "This PaymentIntent could not be verified because it has a status of requires_payment_method. Only a PaymentIntent with a status of requires_action may be verified."
Is there absolutely no way to attach US bank account to a customer simply from the APIs?
I think there is but not really documented directly since it's not a normal flow
Like you can call https://docs.stripe.com/api/payment_methods/create#create_payment_method-us_bank_account to create a PaymentMethod, and then pass it to https://docs.stripe.com/api/payment_intents/confirm if that's what you're looking for(confirming the PaymentIntent might then move it to the requires_action status where verification is relevant).
aah okay, let me try that
@plain wadi apologies for the trouble, but while confirming the payment intent I am getting the following error - Payment method data is not allowed when payment_method_options[us_bank_account][verification_method]=instant is used
All I am passing is the payment_method_id
yes, because instant is for the client-side "log in to your bank account" verification flow. I guess it's the default. So probably you have to explicitly pass https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-us_bank_account-verification_method :"microdeposits" if that's what you want.