#imabev_webhooks
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1227056107415929003
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Metadata doesn't pass from one object to another, i.e. metadata set on the Checkout Session object will not be pass to Charge object. However, it's possible to set the metadata on the Payment Intent object under payment_intent_data.metadata hash which will be available in Payment Intent object: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK so don't use metadata...just use payment_intent_data.metadata and I will be able to send with the session and retrieve with the payment
I think that's exactly what that says!
*what you said
You can set the metadata in both directly under Checkout Session and payment_intent_data.metadata, so those metadata information will be available in Checkout Session and Payment Intent object
When the payment is succeeded, metadata can be found in both checkout.session.completed or payemnt_intent.succeeded events when metdata are set in both places
that worked - thank you! I created the session with "payment_intent_data[metadata][repo_ID]" and the value that I set was passed back in the pyment_intent.suceeded event