#ionu_code

1 messages ¡ Page 1 of 1 (latest)

ocean dirgeBOT
#

👋 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.

errant grove
#

Hi! Looking into this!

languid isle
#

thank you

errant grove
#

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?

languid isle
#

yes

#

for example if klarna is available

#

so I can add in the js code payment_method_types: ['card', 'klarna'], to the payment element

errant grove
#

Here you can see the available payment methods and what has been enabled / disabled.

languid isle
#

yes, but I need this via api. I am integrating numerous stripe accounts, not just one account

errant grove
#

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?

languid isle
#

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

errant grove
#

What connected account type do you have?

languid isle
#

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

errant grove
languid isle
#

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

errant grove
#

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.

languid isle
#

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

errant grove
#

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.

languid isle
#

thank you or the info