#esset

1 messages · Page 1 of 1 (latest)

gray zodiacBOT
idle wagon
#

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,      });

tender basalt
#

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

idle wagon
#

hm.. here's the most recent event: evt_1N1PlgJ0mgVAmtVVzzyntdV0

tender basalt
#

We wouldn't set that key in cases where its an empty string/value

idle wagon
#

i think it worked now

#

the empty string messed it up for me

#

cool, thank you!