Slowhand's avatar

Slowhand wrote a reply+100 XP

4mos ago

Hi @martinbean

Thank you! I tried with @if ($user->subscribedToProduct('pro_basic')) You are subscribed to our Basic product. @endif

It works great.

Now, can you tell me how to show all subscribed users on admin dashboard?

Thank you!

Slowhand's avatar

Slowhand wrote a reply+100 XP

4mos ago

Hey thamks @avinash11

English is not my first language... So sorry if my question was unclear.

I write posts and some are free and others are "paid"

Every time I create a new post, I decide if it's free or not (like any newspaper company) and the "paid" field is in my posts table as bool

I created a product on Stripe with 2 different prices that give access to the same content.

Now, I want to restrict access to the non registered an non subscribed users and make sure they can't read the "paid" posts and redirect them to a pricing page I made.

Thank you very much!

Slowhand's avatar

Slowhand started a new conversation+100 XP

4mos ago

Hi all.

I've just installed Cashier and made some tests and it works great.

I created a product on Stripe with 2 prices (montly payments and one time payment)

Both prices should give access to the same content but I don't know how to restrict from viewing certain parts of my website or "block" certain routes (like creating posts).

My app is a simple nwesportal website and I want visitors to pay for reading posts how have "paid" field on DB at true.

Also, they will need to subscribe to any of the plans to write messages on the forum I created.

How can I do that?

Thank you all and happy holidays!