#motorphotor
1 messages · Page 1 of 1 (latest)
Hi there
You can see all of our types of events via the API Reference here: https://stripe.com/docs/api/events/types
Each one indicates what object the event contains
So then you can go to that object to see what data will be in the response
Neat that’s perfect thanks. Ok what I’m looking for… is there a way to expand the invoice object from an invoice.paymentSucceeded webhook to see the credit card last4?
Right now I’m see the quickest way to get last4 is to retrieve ‘pi_’ to get ‘src_’ and then retrieve ‘src_’ to get last 4
Nope you would need to retrieve the Invoice after receiving the webhook and then expand the payment_intent.charge in the retrieval request
Ok, exactly what I needed. Your service is appreciate!