#Sarvesh
1 messages · Page 1 of 1 (latest)
hello
Hi
we are using Direct charges api in our project and when user do the card payment from your Stripe payment form shown on our website.
In payment success webhook can we get the card details / last 4 digits of card used by user?
we want to add those last card digits in payment info data for user
card type and last 4 digits will be sufficient.
sure. They're in https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card and you can use the Retrieve Charge API to get that Charge object when handling something like a payment_intent.payment_succeeded event.