#motorphotor

1 messages · Page 1 of 1 (latest)

leaden larkBOT
trail prairie
#

Hi there

#

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

mystic aspen
#

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

trail prairie
#

Nope you would need to retrieve the Invoice after receiving the webhook and then expand the payment_intent.charge in the retrieval request

mystic aspen
#

Ok, exactly what I needed. Your service is appreciate!