#noah12224_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/1383112328056279152
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi hi! I'm not quite following the issue here - can you tell me more about what exactly you did, and how exactly it differed from your expectations?
If I specify that payment methods "card" and "us_bank_account" to my payment elements component, but I have that us ach debit option disabled within the stripe dashboard, I was expecting only the card option to render. But in our sandbox, both options would render. I guess, in general I thought the Stripe dashboard would still be the source of truth even when specifying payment methods manually, is that correct to assume?
Do you have the same thing configured in your Sandbox?
Yeah, the pmc_1QX6u1R4hwUISkSUmXeFasAd should have that ach debit option disabled and card enabled.
automatic_payment_methods: {
enabled: "false",
},
You're disabling the Payment Method Configuration right there, so it won't be involved in the creation of this Payment Intent.
Ah right, does the default payment method configuration come in to play at all when specifying payment methods? Or will Stripe just respect whatever list of payment methods I feed it (apart from things like transaction amount limits).
The list of payment method types (for example, a card) that this PaymentIntent can use. If you don’t provide this, Stripe will dynamically show relevant payment methods from your payment method settings.
https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_types
So payment_method_types is an 'override mechanism' for the configuration/settings in your dashboard - does that make sense?
Yep, that makes sense! Thanks for the help!