#TrickyMick

1 messages ยท Page 1 of 1 (latest)

full sorrelBOT
frosty gulch
#

๐Ÿ‘‹ happy to help

serene epoch
#

I'm already passing a price_id.. can I also pass price_data

  const session = await stripe.checkout.sessions.create({
    mode: 'subscription',
    line_items: [
      {
        price: price_id,
        // For metered billing, do not pass quantity
        quantity: 1,
        price_data: {here???}
      },
    ],
frosty gulch
#

can't you map your price_id to the service?

#

I mean you can add a metadata to the price itself

serene epoch
#

I suppose I can associate the price_id to my 'plan' in the DB.. and then just look it up when I get the price back

frosty gulch
#

so you don't have to do it for each subscription

serene epoch
#

oh, I can add metadata to the price information in stripe?

full sorrelBOT
frosty gulch