#raenk

1 messages · Page 1 of 1 (latest)

shell muskBOT
#

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
spring lichen
#

2 ways:

  1. Listen for checkout.session.succeeded events, where the metadata will be set
  2. 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
#

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)

dense token
#

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.

spring lichen
#

Yep, these would work with the checkout session or payment intent, which will work the same here regardless of payment method