#raenk
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.
- raenk, 18 hours ago, 20 messages
2 ways:
- Listen for
checkout.session.succeededevents, where the metadata will be set - Set your metadata in the session's
payment_intent_data[metadata]param, which will set this metadata on the payment intent
https://stripe.com/docs/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.
In general, metadata is not automatically copied between objects in Stripe, even closely related objects
One of the exceptions is that when a PaymentIntent creates a charge, it will do a one time copy of its metadata to the charge (subsequent updates are not passed on)
Thanks, i'll give it a try. In the first option, would it work with oxxo (async payments)?
I get number 2 works for card and async payments, just need to send the metadata as you said.
Yep, these would work with the checkout session or payment intent, which will work the same here regardless of payment method