#Datdudebeast

1 messages ยท Page 1 of 1 (latest)

carmine marshBOT
#

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.

verbal trench
#

How can we help?

upbeat gyro
#

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

verbal trench
#

Do you have a request ID for the request wher eyou get the Card? What is the payload you're getting?

upbeat gyro
#

can i find that within the webhook logs on the dashboard?

verbal trench
#

In the logs yes

upbeat gyro
#

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?

verbal trench
#

Can you post the full payload?

upbeat gyro
#

yup, there you go

verbal trench
#

How ar eyou trying to get the Card object from this request?

#

Or do you need direction about how to do that?

upbeat gyro
#

I need guidance. I tried pulling the last 4 digits from the customer payment method info. But that doesnt seem to be working.

verbal trench
#

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