#arrayappy
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Do you want to attach metadata to Checkout Session object?
Yeah.
My requirement is to attach some metadata to these payments transactions that we can see in screenshot.
You can use the CheckoutSession.metadata field: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata
Or CheckoutSession.payment_intent_data.metadata, if you want the metadata to live on the related PaymentIntent object https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata