#kholmurodov-checkout-metadata
1 messages · Page 1 of 1 (latest)
Hey there! Can you share which metadata parameter you're using when creating the Checkout Session?
it is just string.. to check which type of transaction is happening..
i have a few logics depends on the transaction type in webhook.
I mean the API parameter you're using. I assume: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-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.
yeah you are right!
there is a Metadata field in SessionCreateOptions object. so i am using it.
If you want the metadata on the underlying Payment Intent/Charge, then you should use this parameter instead: 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.
oh.. Thank you!
Sure, np!