#ivan_chh-Klarna
1 messages · Page 1 of 1 (latest)
@violet hound yes that information is part of the Charge object of the payment after it's complete(that's what your screenshot is), it's not part of the PaymentMethod pm_xxx
for example you'd look at the successful PaymentIntent and look at intent->charges->data[0]->payment_method_details
yes It is not part of the payment method, because I am looking for an alternative to obtain this information. From the Charge object, it does not return this information either, even so I can see it in the dashboard
what is your screenshot from?
because it looks like a Charge object and I just showed you how you access that exact same information.
yep that's a PaymentMethod, it doesn't have the state about what category the customer picked in an individual transaction
that information is on the Charge object instead
I get this retrieving charge object
and Klarna object is null
I am accessing the payment_method_details and it does not have anything when it is Klarna, for example for card is working correctly
you're using .NET right?
yes
you need to update to the latest version(https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#39730---2021-10-11) since we added support for that field just this week)
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe-dotnet/CHANGELOG.md at master · stripe/stripe-dotnet
on older version it's not deserialised from the JSON which is why you can't access it
How lucky I am, we started developing a few weeks ago, thank you that you have detected, because I was going crazy and I did not know what was happening. Because in your documentation everything is very clear, but I did not see the object on retrieve.
otherwise if you retrieve the Charge and do charge.RawJObject then it should be possible to get from there as well