#Ahmed-Connect-best-practices
1 messages · Page 1 of 1 (latest)
(Appreciating!)
🙂
Metadata is the way to go here and then they should be able to export to CSV and filter that export based on metadata
Is there a difference between metadata in the checkout session and metadata in the payment? I notice on my individual transactions I can see the metadata in the JSON associated with the session, but the metadata in the payment is empty
That's the payment metadata (I think)
And this is the checkout metadata
Ah yes there indeed is a difference
Do I need to send my checkout metadata to the payment metadata?
So when you set the metadata you are currently setting it here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata. Whereas if you want it to carry down to the PaymentIntent you want to set it here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata
Okay. This is all super helpful. Okay. Will get on it and see what I can find from here. Thanks again