#alphazero_code

1 messages ยท Page 1 of 1 (latest)

quartz otterBOT
#

๐Ÿ‘‹ 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.

dapper shuttleBOT
west olive
#

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?

copper light
#

toby, I forgot to mention that klarna is showing up successfully

#

wait a minute I'll provide you that ID

#

pi_3Os6JRHVqaiDSMcu1ppqNGjz_secret_BJBQgSO2VValTNEIKwwD3FiZJ

west olive
#

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.

copper light
#

so I should try this vpn?

west olive
#

I think so

copper light
#

and could you please guide me on how to hide some payment methods like cash app on this form?

west olive
#

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

copper light
#

oh ok, so that would mean I have to update the payment intent

#

whenever I want to hide cash app and other wallets

west olive
#

Yes, if you want to explicitly control the shown Payment Methods, then you will need to adjust your flow so it controls that.

copper light
#

alright. thanks a lot toby

west olive
#

Any time!