#henrik_47214
1 messages ยท Page 1 of 1 (latest)
Hi there!
The PaymentIntent has a PaymentMethod, which contains the card brand: https://stripe.com/docs/api/payment_methods/object?lang=node#payment_method_object-card-brand
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
But once the PaymentIntent is successfull, it does contain the PaymentMethod: https://stripe.com/docs/api/payment_intents/object?lang=node#payment_intent_object-payment_method
I have not seen that. I will take a look again
I think paymentmethod is null for us, and accoding to docs https://stripe.com/docs/api/payment_intents/object?lang=node#payment_intent_object-payment_method it seems about right
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
PaymentMethod is null and also PaymentMethodId
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.
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
Can you share a PaymentIntent ID (pi_xxx) where you saw this?
Yes, one moment
pi_3OD286FSPi4ltz6y11tnhugl
I think I found a solution, I can request GET charge and in that object paymentmethoddetails exists
Thanks! Give me a few minutes to look into this.
Oh, looks like you are using an old integration that doesn't use PaymentMethod.
Then yes in this case your solution should work.
Okey, thank you!
Happy to help ๐