#Sakin

1 messages · Page 1 of 1 (latest)

sinful galeBOT
proper phoenix
#

Have you checked the description field of the Subscription?

crisp helm
#

I was looking in the webhook event object

#

should i use thisconst subscription = await stripe.subscriptions.retrieve( 'sub_1MrDVzBVhoJP270LZcQOlkFb' );

sinful galeBOT
lethal relic
#

can you share the event id that you're looking at?

crisp helm
#

I am looking in all of the events I'm getting. Here is one event type and id payment_intent.succeeded: evt_3MrDW0BVhoJP270L2pJzZ07r

lethal relic
#

you won't be able to get that data from the payment_intent.succeeded event. You can see it from the customer.subscription.* events or the invoice.* events

crisp helm
#

found in customer.subscription.updated as nickname: "pro-monthly". So will the plan name always appear as [plan_name]-monthly?

lethal relic
#

isn't that nickname set by you?

crisp helm
#

I named them as premium, pro, etc and they are monthly plan

lethal relic
#

then it sounds like yep, that's the format the nickname follows