#austin_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/1476224923306557521
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Taking a look ๐
Sorry for the delay, I was juggling a few threads.
To clarify, you do not want us_bank_account to be shown as a payment method option in your checkout flow?
Hey Jazz! I do want US Bank Account to show, I just want to remove the "Enter bank details manually" option. I.e. only keep instant bank verification option
I see, thanks for clarifying! I'm looking at options for this...
It looks like you might be able to set the verification_method to instant. See:
- https://docs.stripe.com/js/react_stripe_js/elements/elements_provider_without_intent#react_elements_provider_without_intent-options-paymentMethodOptions-us_bank_account-verification_method (client side)
- https://docs.stripe.com/api/payment_intents/update#update_payment_intent-payment_method_options-acss_debit-verification_method (server side)
Correct me if im wrong, but isnt this saying the property must be set on the PaymentIntent/Subscription, not directly on the Stripe Element? Hence, I would still have my issue?
Or can I have the property directly on the Stripe element?
That first link shows you where to set it client-side (in javascript for the stripe element)
Also I'm taking over for Jazz as they had to step away
Actually that first link is React specific
If you don't use react, here's the doc for regular stripe.js javascript: https://docs.stripe.com/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodOptions-us_bank_account-verification_method
You set it when initializing elements
Thanks for the help Codename_Duchess and Jazz! I set the stripe element with the verification method and its hiding the microdeposit bank option now.
elements = stripe.elements({
mode: 'subscription',
amount: (@Model.StripeInfo.AmountInDollars*100),
currency: 'usd',
paymentMethodOptions: {
us_bank_account: {
verification_method: 'instant'
}
}
});
Awesome!