#itsqwerty
1 messages · Page 1 of 1 (latest)
You need to make an API call, to fetch the details.
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'
},
can you share how you are setting the plan name ?
can you share some Stripe object ids (event ?)
they are just set manually via the stripe dashboard
and in each one of them, have created 2 prices
in this case "Advance", "Growth" or "Basic"
Advance, Growth and Basic?
yeah correct
need a min, need to login itno the test acc
you need to make an API call to fetch the product by id
https://stripe.com/docs/api/products/retrieve
"id": "evt_1NZCzaBTA47Sy6lMHYy8tHlr",
from the prod_NriiI4D0ZMybzG productId ?
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)
yes you need to use producst APIs.
.