#henrik_47214

1 messages ยท Page 1 of 1 (latest)

sacred summitBOT
hollow remnant
#

Hi there!

queen lance
#

in this case we do not have pm id. We create an intent and user inserts card data in an iframe

#

I think we only have the paymentintent

hollow remnant
queen lance
#

I have not seen that. I will take a look again

#

PaymentMethod is null and also PaymentMethodId

hollow remnant
#

Are you asking about the card brand before or after the payment?

#

Because if it's after, then the PaymentIntent will always have a payment_method set, and there you can find the card brand.

#

If it's before the payment, then it's a little different.

queen lance
#

after the payment is done we will get paymentIntent to check for status. And when in my testing, after status is success, paymentMethod is null

hollow remnant
#

Can you share a PaymentIntent ID (pi_xxx) where you saw this?

queen lance
#

Yes, one moment

#

pi_3OD286FSPi4ltz6y11tnhugl

#

I think I found a solution, I can request GET charge and in that object paymentmethoddetails exists

hollow remnant
#

Thanks! Give me a few minutes to look into this.

hollow remnant
#

Oh, looks like you are using an old integration that doesn't use PaymentMethod.

#

Then yes in this case your solution should work.

queen lance
#

Okey, thank you!

hollow remnant
#

Happy to help ๐Ÿ™‚