I'm using a client_reference_id
URL parameter to pass my own session of the checkout to Stripe. I was hoping, Stripe can then pass that parameter value on to my success page, again as an URL parameter, however that doesn't seem to be possible. Only the Stripe Checkout Session ID seems to be possible by adding {CHECKOUT_SESSION_ID}
to the confirmation URL.
I understand from the documentation, I will have to get the client_reference_id
from the webhook json document that Stripe submits, which I can identify by the checkout_session_id
, correct?
Or did I miss anything? Or is there even another way to keep this simple?
client_reference_id
will not be returned as part of the query parameter in the URL your success page. The only way is to get throughcheckout.session.completed
event.