#samaratungajs
1 messages · Page 1 of 1 (latest)
So you want to set the metadata on the subscription or payment_intent depending on its mode?
yes and need to get that metadata on payment_failed
Sure, you can set the metadata on https://stripe.com/docs/api/checkout/sessions/create?lang=cli#create_checkout_session-payment_intent_data-metadata if it's payment mode
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And https://stripe.com/docs/api/checkout/sessions/create?lang=cli#create_checkout_session-subscription_data-metadata for subscription mode
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.