#twinkle0293
1 messages ยท Page 1 of 1 (latest)
So our customers wanted to see the some card information they have used for Link type payments. The webhook response returned for these payments does not include any information, so we requested stripe and stripe said they have now build this feature. but i still don't see any card information with link type payments
Can you share a specific evt_xxx?
do you have information related to this charge - py_3NazxbHFzwE4pTge09WPrvj1
This is a link type payment and the webhook response just returns link without any card details
You need to lookup the payment_method field: https://stripe.com/docs/api/charges/object#charge_object-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah, I did look into it and I only get this
Since stripe confirmed that they are sending the card brand now, is this feature in specific update ?
Yes you need to make an API request the retrieve the pm_xxx ID
Who confirmed what?
Not sure who from Stripe confirmed it but we got this update from our support reps saying stripe sent this to them over email/text
"Our tech teams have rolled out the new feature. You should be able to see the card brand logo next to "Link". The change is effective on existing and new Link payments."
I'm fairly sure that is in reference to the Dashboard:
If you want the card brand for a Link PM via the API and you have a charge,* event, you need to do what I advised โ๏ธ
You will get a card hash in the response: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
brand etc in there
I am getting a nil value for card
I just tried it
And it causes a panic when I try to get the brand out of card since card itself doesn't exist
Ah, looks like that is a different Link PM. I expect type is link?
yes
Then AFAIK the underlying card details aren't exposed via the API
That means you are providing us the logo and last 4 on the stripe dashboard but it is still missing in the API response
Yeah sure, there are certain Dashboard features that aren't available via the API
got it, thankyou for the clarification