#_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/1311601284914089987
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Are you looking to control the payment methods manually via API or through Dashboard?
With manual payment method controls via API, payment_method_types is the correct field as shown in your screenshot. Are you seeing other unexpected payment methods on your Checkout Session? If so, can you share your Checkout Session ID (cs_xxx) and the unexpected payment methods that are shown?
here is: cs_test_a10wVst044HFVzuLLSexlfmIVtOZBOUchExqS3lxpWIdvgjLmy3fKBzpbi
I want to hide Apple Pay
Apple Pay is considered as the card payment type, so it can't be disabled via API.
The only way is to use automatic payment method (remove payment_method_types from your code) and disable Apple Pay from the Dashboard. Here's how you can do it: https://docs.stripe.com/connect/direct-charges?platform=web&ui=stripe-hosted#enable-payment-methods