#Datdudebeast
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- datdudebeast-checkout, 3 hours ago, 24 messages
How can we help?
Hi, Im trying to store the last 4 digits of the users card info inside my firestore but its not working. I get the payment info showing up as "card" but not the last 4 digits of the card for that user
let me know if I should explain more and feel free to ask plenty of questions
Do you have a request ID for the request wher eyou get the Card? What is the payload you're getting?
can i find that within the webhook logs on the dashboard?
In the logs yes
would it be titled request id?
This is what the id for the request looks like
so does this mean in my code its not actually making a request for the last 4 digits?
Can you post the full payload?
How ar eyou trying to get the Card object from this request?
Or do you need direction about how to do that?
I need guidance. I tried pulling the last 4 digits from the customer payment method info. But that doesnt seem to be working.
This is my server side code
So you need to get the Payment Intent and expand the Payment Method on the Payment Intent that gets created from your Checkout Session: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method
The Payment Method has a Card object on it with the last4 as an attribute: 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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.