#RubyDev
1 messages · Page 1 of 1 (latest)
Hi Hanzo
can you help me get client_reference_id on invoice.payment-succeeded for payment link?
I need anything back on invoice.payment-succeeded
Hello 👋
The client_reference_id is a property that belongs to the Checkout Session object.
One option I can think of is,
1/ You get the PaymentIntent ID from the invoice
2/ Use the list checkout session API to find the session that confirmed that PaymentIntent
https://stripe.com/docs/api/checkout/sessions/list
3/ the session object should have client_reference_id
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-client_reference_id
which I can set during create
You can add client_reference_id as URL param
https://stripe.com/docs/payment-links/url-parameters#streamline-reconciliation-with-a-url-parameter