#charlie-fanbase_unexpected
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/1427608669880848426
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Can you confirm where you see this being set to false?
Yip its from this code var service = new PaymentMethodConfigurationService();
var paymentMethods = await service.ListAsync(requestOptions : requestOptions);
This isn't related to capabilities, it's just for listing payment method configs. Do you have the request ID?
Should that not return true for Klarna if it is enabled?
I'll try grab request Id now
hi! I'm taking over this thread.
Hi
well, it depends which payment method configuration you are looking at exactly. so that's why a request ID would help.
Cool request Id is req_mOUNcnm2BPp7qa
and which PaymentMethodConfiguration are you looking at exactly (pmc_xxx)?
Sorry not sure how to check that?
var paymentMethods = await service.ListAsync(requestOptions : requestOptions);
this code can returns multiple payment method configuration. on which one do you see it set tofalse?
Yip sorry follow now. Klarna is what we are looking at. Exact code is: KlarnaAvailable = paymentMethods.Data.FirstOrDefault(pm => pm.Application != null).Klarna?.Available ?? false,
can you shrae the PaymentMethodConfiguration ID (pmc_xxx) you are looking at?
I don't think there is a specific configuration we are looking at, is it not the account wide settings?
I think you are confusing a few things:
- Each Connected accounts have capabilities, that you can retrive with this API: https://docs.stripe.com/api/capabilities
- Each Connected account can have multiple PaymentMethodConfiguration, that you can retrive with this API: https://docs.stripe.com/api/payment_method_configurations
A connected account can have Klarna enabled as a capability, but disabled in one of their PaymentMethodeConfiguration.
Ok cool, we may have got it wrong during initial build. Do you know why this would have changed? Its been working correctly for over a year, but started returning false around 10 days ago
but started returning false around 10 days ago
what did return false? the PaymentMethodConfiguration? If so, can you share it's ID that looks likepmc_xxx?
Its returning FALSE for the snippet above when setting KlarnaAvailable. We aren't passing in a PMC Id, the code to call the endpoint is above, I'm not sure how this endpoint works but it used to return true for the KlarnaAvailable code, so I was assuming it returned the company settings if no payment configurations are created.
can you update your code to print the object ID, and past it here so I can have a look?
Nope sorry this is only happening in production, can't replicate in our dev environments
Which objectId are you looking for?
the PMC? I don't think this club has any PMC's setup
I'm looking for the ID of the PMC where you see that Klarna is set to false.
when you list he PMC, it return a list of PMC, each one has an id. https://docs.stripe.com/api/payment_method_configurations/object#payment_method_configuration_object-id
Nope sorry this is only happening in production, can't replicate in our dev environments
can't you write some extra code to list the PMC and print the output?
then share the ID you see in the output?