#esset
1 messages · Page 1 of 1 (latest)
I have also tried using the subscription_data.metadata property, without success:const session = await stripe.checkout.sessions.create({ line_items: [ { price: 'price_1N1E6SJ0mgVAmtVVwDBHOEDz', quantity: 1, }, ], metadata: { firestore_partner_id: req.body.client_identifier, }, subscription_data: { metadata: { firestore_partner_id: req.body.client_identifier, }, }, mode: 'subscription', success_url: ${req.headers.origin}/?success=true, cancel_url: ${req.headers.origin}/?canceled=true, });
subscription_data.metadata should be set on the resulting Subscription
The root metadata field is only set on the associated Checkout Session, none of the associated objects it generates
hm.. here's the most recent event: evt_1N1PlgJ0mgVAmtVVzzyntdV0
Well, you passed an empty string to the metadata key: https://dashboard.stripe.com/test/logs/req_PFItoIARTeQMMz
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
We wouldn't set that key in cases where its an empty string/value