#itsqwerty

1 messages · Page 1 of 1 (latest)

coral vineBOT
wise steeple
#

You need to make an API call, to fetch the details.

astral ledge
#

But I don’t seem to get the actual plan name that is configured while creating the plan

#

I know I can store it as the meta data but curious why I don’t get the name

#

Or what I’m doing wrong

#

this is what I get in the webhook:

      id: 'price_1N5zLcBTA47Sy6lMeZNUJunl',
      object: 'plan',
      active: true,
      aggregate_usage: null,
      amount: 33600,
      amount_decimal: '33600',
      billing_scheme: 'per_unit',
      created: 1683672572,
      currency: 'usd',
      interval: 'year',
      interval_count: 1,
      livemode: false,
      metadata: {},
      nickname: null,
      product: 'prod_NriiI4D0ZMybzG',
      tiers_mode: null,
      transform_usage: null,
      trial_period_days: null,
      usage_type: 'licensed'
    },
wise steeple
#

can you share some Stripe object ids (event ?)

astral ledge
#

they are just set manually via the stripe dashboard

#

and in each one of them, have created 2 prices

wise steeple
#

Can you share an eventId that you've received ?

#

What name are you looking for ?

astral ledge
#

in this case "Advance", "Growth" or "Basic"

wise steeple
#

Advance, Growth and Basic?

astral ledge
#

yeah correct

astral ledge
wise steeple
astral ledge
#

"id": "evt_1NZCzaBTA47Sy6lMHYy8tHlr",

wise steeple
astral ledge
#

one moment

#

right i see

#

what is the differnce betwene product and plan?

#

i was doing .plan.retrive before and it kept failing 😅

#

products.retrive works

#

also can the plans be products be fetched from just the public stripe key or that is not possible (i am assuming not)

wise steeple