#ionu_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/1328617950504157275
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Looking into this!
thank you
But can I get if a specific payment method type is available in a stripe account
Are you asking how can you find out what payment method are available for your Stripe account?
yes
for example if klarna is available
so I can add in the js code payment_method_types: ['card', 'klarna'], to the payment element
You can go to the payments method page in your dashboard: https://dashboard.stripe.com/settings/payment_methods
Here you can see the available payment methods and what has been enabled / disabled.
yes, but I need this via api. I am integrating numerous stripe accounts, not just one account
Can you provide more details on what are you trying? Are you attempting to retrieve the payment method configuration for your accounts or connected accounts?
yes, I have 2 types of accounts, ones that have api_key (we are migrating them to stripe connect), and the stripe connected accounts.
My application is generating checkout pages with the account data of a specific account, and on that checkout pages, I need to add the payment methods available. But some of the accounts might not have the x payment method enabled, so I would like to know what tare the ones available before I render the checkout
What connected account type do you have?
well, for testing purposes I have the ionu@genesisdigital.co account. There are several accounts connected to it in test mode
acct_1FkAGzEah6jYoDai this would be the main account id
I would like something like : get all payment method types available for the current account. If that is something available, of course
Is there a reason why you need to retrieve the payment method for each connected account? You can use dynamic payment methods instead which will save you the hassle [0, 1]
[0] https://dashboard-admin.stripe.com/test/settings/connect/payment_methods
[1] https://docs.stripe.com/connect/dynamic-payment-methods
ok, if for example I need setup_future_usage: 'off_session', which klarna does not support. The dynamic payment methods will handle it ?
Also, I would like to have a strict control over what method types I offer, so I can process them after payment.
Also on the connected accounts I can have control, but on the ones that still use the "api_key" I do not
ok, if for example I need setup_future_usage: 'off_session', which klarna does not support. The dynamic payment methods will handle it ?
When you use dynamic payment methods, Stripe handles the logic for dynamically displaying the most relevant eligible payment methods. So if you set setup_future_usage: 'off_session', it will not show Klarna as a payment method.
Also, I would like to have a strict control over what method types I offer, so I can process them after payment.
The payment method configuration allows you to choose the payment methods that should appear to your customers.
Also on the connected accounts I can have control, but on the ones that still use the "api_key" I do not
I am assuming you are referring to Standard connected accounts. You will not be able to retrieve the payment methods for them. You can only set Payment Method Configurations for when you create direct charges for these accounts.
ok, thanks. Just one question, when I select from the main account, and disable all but let's say google pay and klarna. The connected accounts if they have a separate code implementation (not through our main account), the will still have their selection of the payment mehtod types unrestricted
Yes, Standard connected accounts have 2 payment method configurations (PMC). One controlled by the platform and one of their own. The PMC controlled by the platform will not impact the other PMC.
thank you or the info