#chirag_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/1466257248874660013
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! Can you share more details on what you are trying to do? For example, are you trying to make a direct charge and define the PMC being used? Knowing this will help me advise on your question for Is selecting the parent-managed PMC the correct approach in this scenario?
This was my full message but couldn't put it earlier
Hi,
I wanted to share how we're handling Payment Method Configurations (PMC) for our Stripe Connect integration and get your input on our approach.
Our Setup:
- We use Stripe Connect with connected accounts
- PMC visibility is disabled on connected account dashboards (they cannot see or manage PMC settings)
What We Observed:
When we call PaymentMethodConfiguration::all() for a connected account, Stripe still returns 2 configuration objects:
- Config with parent = null - Connected-account-managed PMC
- Config with parent != null - Parent-managed PMC (inherits from platform)
Our Question:
Since connected accounts cannot manage their own PMC (dashboard visibility is off), we assumed the parent-managed PMC (parent != null) is the correct one to use for creating PaymentIntents. This ensures payment method settings are controlled at the platform level.
Scenario is
- Payment intent gets created with lets say card as payment method
- Our system internally can enable some payment methods after the creation of payment intent
- Lets say for one of the connected account had klarna enabled (via update PMC call which will require PMC id) to grab this PMC id I need to call list endpoint and then I get 2 objects while when I login as a platform account and go to connected account it displays only one PMC
Logically, you don't need to pass in the PMC though, since the PMC is automatically determined based on the Charge type. For example, if you are using direct charges or destination charges with OBO, Stripe would automatically use the Parent-managed PMC. If you are using destination charges (without OBO), the PMC used should be that of the platform account
This is a public channel, please don't share any secret API keys, even that of testmode. The key you shared is now considered as compromised and I strongly recommend you roll it
I've deleted it from this thread for security.
ah this is from the stripe public record right?
it is from an API explorer
I call this -> https://docs.stripe.com/api/payment_method_configurations/list?lang=php to grab PMC_ID
which I can pass to https://docs.stripe.com/api/payment_method_configurations/update?lang=php and it is required for the call
Going back to your question - required for what call?
Update payment method configuration call
ah, so you're essentially asking which PMC you need to update if you want to change the payment methods that are enabled?
yes
I tried to explore my(platform) dashboard for connected accounts and I always got PMC with parent id
you can't manage the platform PMC for which manages the connected accounts, you can only do this via the Dashboard
I want to enable/disable few methods via API call to a connected account on given time, is it not doable via API?
can you share how are you collecting payments first - direct charges, destination charges, or separate charges and transfers? Do you have an example PaymentIntent ID which I can look at if you're not sure?
pi_3SugqODAgSq7qZsf1ZDaPT8L
Hi! Stepping in for my colleague.
I want to enable/disable few methods via API call to a connected account on given time, is it not doable via API?
Is your goal to update the PMC for a specific connected account or all your connected accounts?
specific connected account
In that case you can use the PMC API to update the connected account's PMC. Are you facing any issues with this?
yes I got two objects when I call get payment configuration but which object should I use?
Since you are doing a destination charge with OBO, Stripe will use the connected account's PMC that is controlled by the platform. So you should update the PMC that has parent != null.