#yasi_66877

1 messages · Page 1 of 1 (latest)

open warrenBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

balmy skiff
strange mesa
#

Can I get this client-reference-id on the checkout-success page on my site after redirecting the customer?

balmy skiff
#

You will get client-reference-id in the checkout.session.completed event

open warrenBOT
strange mesa
#

Yes that's right but what I need is a way to get an identifier for the customer on the checkout-success page.

young iron
#

Hi! I'm taking over this thread.

#

On your confirmation page you get the Checkout Session ID in the URL. Then use that to retrieve the Checkout Session and check the client-reference-id value.

strange mesa
#

Hi, thank you for your help.
I followed what is suggested in the article but did not get the checkout session ID in the confirmation URL.
This is the confirmation page URL that I passed to the pricing table "http:localhost:3000/checkout-success/".

young iron
#

Did you include the string {CHECKOUT_SESSION_ID} in your redirect URL as explained in the link I shared?

#

So something like http:localhost:3000/checkout-success/?id={CHECKOUT_SESSION_ID}.

strange mesa
#

I had passed the client_refrence_id instead of the CHECKOUT_SESSION_ID by mistake. My bad, sorry!
It worked with passing CHECKOUT_SESSION_ID instead.
Thank you so much for your support!