#eskimo - Client Refrerence

1 messages ยท Page 1 of 1 (latest)

muted rose
#

Hi ๐Ÿ‘‹
Do you have the Checkout Session ID?

clever kernel
#

No, that's what i'm trying to get

#

When a payment fails, it has no reference to the checkout session

#

So unless the payment eventually succeeds, or I wait 24 hours for the checkout to expire, I have no way of attaching it to the persons contact in my crm

muted rose
clever kernel
#

I'm not following?

#

This isn't an issue with a specific payment

#

So look

#

Customer fills out form, goes to stripe checkout, pays, checkout.completed happens, so the webhook goes to my server and tells me who it was and now i attach the stripe customer id to my contact in my crm

#

If the payment fails, there's nothing that references the checkout session, so i can't get the client_reference_id i added, so i can't attach it on my end via a webhook

#

Can get the session by the payment intent

muted rose
#

Yeah that is why I wanted to see the failed payment, to double check that the session ID is passed as a property of the Payment Intent

#

Most of our related objects like that do contain IDs of their sibling objects

clever kernel
#

Well, the payment intent doesn't contain the session id

#

But, I can at least just list checkout sessions by payment intent, so that works