#mizark

1 messages · Page 1 of 1 (latest)

wanton socketBOT
true gull
#

hi! those are details of the PaymentMethod object.

#

So if you are handling something like a payment_intent event , you call the API to retrieve the payment_method ID from that object and can look at that

rough flume
#

So I would need to retrieve the payment method to get the email that was passed in on the frontend?

true gull
#

yes

wanton socketBOT
rough flume
#

Is there a way to just get it directly from the webhook response?

true gull
#

no, since the webhook is a payment_intent event and the data is on a PaymentMethod object.

#

it's really common and normal to retrieve other objets when handling a webhook, that's just how it works and is normal

#

does it cause a specific concern?

rough flume
#

There is a receipt email field though, where is that from?

true gull
#

the email address of the customer

rigid phoenix
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!