#ivan_chh-Klarna

1 messages · Page 1 of 1 (latest)

spice phoenix
#

@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

violet hound
#

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

spice phoenix
#

what is your screenshot from?

#

because it looks like a Charge object and I just showed you how you access that exact same information.

violet hound
#

ups

#

whait a sec

spice phoenix
#

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

violet hound
#

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

spice phoenix
#

you're using .NET right?

violet hound
#

yes

spice phoenix
#

on older version it's not deserialised from the JSON which is why you can't access it

violet hound
#

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.

spice phoenix
#

otherwise if you retrieve the Charge and do charge.RawJObject then it should be possible to get from there as well