Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lara28580's avatar

Someone knows how to set a readable stripe api id?

I am struggeling very hard to set up a readable stripe api id in my stripe dashboard someone knows how to do that? Or ist this not possible anymore? I want to show the plan to the user on which he/she is on. Like it is on laracasts. I know it worked did it some time ago.

I mean this price_1Gs7EZLBbyCAdeaMMEP2GvwJ should be this monthly

Best

0 likes
2 replies
lara28580's avatar
lara28580
OP
Best Answer
Level 10

Is not a stripe feature anymore, maybe they will add it again. Wrote with the stripe support.

lara28580's avatar

Does this then mean this section in the docs is outdated?

The subscribedToPlan method may be used to determine if the user is subscribed to a given plan based on a given Stripe plan ID. In this example, we will determine if the user's default subscription is actively subscribed to the monthly plan:

if ($user->subscribedToPlan('monthly', 'default')) {
    //
}

Or does that mean I have to use it like so

if ($user->subscribedToPlan('price_1GsBbgLBbyCAdeaMAUF9CgDI', 'default')) {
    //
}

Please or to participate in this conversation.