#gladys-email-webhook

1 messages · Page 1 of 1 (latest)

elder hearthBOT
fast stratus
#

@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

ionic spruce
#

They always put their email the same way?
they are given a payment link, they put their email there

fast stratus
#

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?

ionic spruce
#

ok one moment

#

is this what you need

fast stratus
#

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

ionic spruce
#

second

#

one more one sec

#

evt_1ObngFFSeMl371ARgG1M7xHA

#

Those 3... what difference do they have

fast stratus
#

the first two are the exact same id

#

They are completely different Event types. Each one describes a completely different action

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

ionic spruce
#

i see ok ok

#

so i should listen to
object: email them

fast stratus
#

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

ionic spruce
#

i want to push the email to our crm, let me send a screenshot

fast stratus
#

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

elder hearthBOT
ionic spruce
#

All good, solved