#yasi_66877
1 messages · Page 1 of 1 (latest)
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.
- yasi_66877, 14 hours ago, 4 messages
- yasi_66877, 23 hours ago, 3 messages
- yasi_66877, 1 day ago, 7 messages
- yasi-subscription-management, 2 days ago, 12 messages
client-reference-id as your own customer ID can be added to the pricing table that your system can reference to it later to identify the customer: https://stripe.com/docs/payments/checkout/pricing-table#handle-fulfillment-with-the-stripe-api
Can I get this client-reference-id on the checkout-success page on my site after redirecting the customer?
You will get client-reference-id in the checkout.session.completed event
Yes that's right but what I need is a way to get an identifier for the customer on the checkout-success page.
Hi! I'm taking over this thread.
This is covered here: https://stripe.com/docs/payments/checkout/pricing-table#post-purchase-experience
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.
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/".
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}.
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!