#BrianC-Checkout
1 messages · Page 1 of 1 (latest)
Hi there! You can't expand objects in Webhook responses. So in this case you should get the customer from your checkout.session.completed hook and then you retrieve the Customer with another API call.
We need to send our identifier along with the transaction and have it sent back to us.
Ah in that case you just add metadata to the Checkout Session
Then that metadata will be returned in the checkout.session.completed hook
Can you point us to the docs for that. Not sure what you mean by sending metadata. Is there an expansion of the object we can customize and send with request?
Yep sorry, you would pass the metadata param when you create the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata
This metadata param is an object where you can send custom key-value pairs. See: https://stripe.com/docs/api/metadata
Yes, that's it. Thanks!