#gladys-email-webhook
1 messages · Page 1 of 1 (latest)
@ionic spruce the email can be in different places depending how it was collected. Depends a lot on your own Stripe integration and how it was built
gladys-email-webhook
They always put their email the same way?
they are given a payment link, they put their email there
example of payment link: https://buy.stripe.com/9AQ6q5gshgCsg2QcOc
Okay so you use PaymentLinks! You didn't mention (and there are dozens of ways to integrate Stripe)
So now can you give me concrete example Event ids evt_123 where the email is in different places so that I can help you?
ok one moment
https://dashboard.stripe.com/events/evt_1OZ7amFSeMl371AR9hmhgnz9
"customer_email": "brettjoerger@gmail.com",
is this what you need
That's one example. You said "it's not always in the same place". So I need different examples so that I can help you compare them
"email": "alexancosimon@gmail.com",
evt_1OZ7amFSeMl371AR9hmhgnz9
second
one more one sec
evt_1ObngFFSeMl371ARgG1M7xHA
Those 3... what difference do they have
the first two are the exact same id
They are completely different Event types. Each one describes a completely different action
evt_1OZ7amFSeMl371AR9hmhgnz9isinvoice.finalizedand is associated with an Invoice object https://stripe.com/docs/api/invoices/objectevt_1ObngFFSeMl371ARgG1M7xHAischeckout.session.completedand is associated with a Checkout Session object https://stripe.com/docs/api/checkout/sessions/object
It's normal that the email is in different place since it's about a separate API. Really you should look at only the latter since you use PaymentLinks and you're going to do fulfillment through that Event
not really, there's no such thing as object: email so I don't really know what you could mean here.
You should look at checkout.session.completed which is the type of Event sent after someone pays successfully on Checkout
i want to push the email to our crm, let me send a screenshot
I don't really want a picture 🙂
We're both developers, I mostly talk about real code and API in clear text. But I explained the difference between the two Events, I said which one to use exactly. You should be able to look at the right Event and extract the email then
All good, solved