#alphazero_code
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/1215696148782645289
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ can you share the ID of a request where you're creating a Payment Intent and aren't seeing the desired payment method types included by automatic payment methods?
toby, I forgot to mention that klarna is showing up successfully
wait a minute I'll provide you that ID
pi_3Os6JRHVqaiDSMcu1ppqNGjz_secret_BJBQgSO2VValTNEIKwwD3FiZJ
Hm, can you tell me more about your integration and the behavior you're seeing? When I look at payment_method_types for that intent, both affirm and afterpay_clearpay are listed as being available.
Ah, I see, the country is the problem I'm pretty sure.
so I should try this vpn?
I think so
and could you please guide me on how to hide some payment methods like cash app on this form?
You can't prevent payment method types that automatic payment methods determiens to be valid from being presented. You can control the paymentMethodOrder when creating the Payment Element to try to force ones you don't want to prioritize further down the list of options:
https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-paymentMethodOrder
If you want to omit specific types of payment methods entirely, you would need to adjust your integration to do so. Either by explicitly setting payment_method_types instead of using automatic_payment_methods. Or by using multiple Payment Method configurations with different payment method types enabled:
https://docs.stripe.com/api/payment_method_configurations
oh ok, so that would mean I have to update the payment intent
whenever I want to hide cash app and other wallets
Yes, if you want to explicitly control the shown Payment Methods, then you will need to adjust your flow so it controls that.
alright. thanks a lot toby
Any time!