#0xNima

1 messages · Page 1 of 1 (latest)

bright vaporBOT
delicate canyon
#

Hi there, can you elaborate more?

grizzled flume
#

I want to know which user each event belongs to? then based on event type, show a payment status like pending, done or failed to user

delicate canyon
grizzled flume
#

well actually what I'm looking for, is a way to send user_id in each event.

delicate canyon
#

You can append a client_reference_id to the URL, but as I explained earlier, there's no event to be fired when a checkout session is opened.

grizzled flume
#

but client_reference_id only is sent in session complete event.
Assume I want to get user_id in payment_intent.create too.

delicate canyon
#

what do you mean by user_id in payment_intent.create ?

grizzled flume
#

user_id is just a custom data. Any custom data.
when I got a payment_intent.create event in webhook, I can't infer which user this event belongs to.

#

customer filed is sent in most of the events to webhook (at least in 4 events that I'm listening) but it is Stripe specific id.

#

I'm looking for such field instead fill it with my own db's data

delicate canyon
#

OK, so you want to assocaite a checkout session created with payment link to a customer, am I right?

grizzled flume
#

Yes

delicate canyon
#

OK. I don't see a solution right now, and I'd suggest you to reach out to Stripe support and see if they have any suggestions https://support.stripe.com/contact/email