I am doing an application consisting of more than one page. I created a separate subscription for each page. For example:
Page A> Subscription A
Page B> Subscription B
Page C> Subscription C
When a page is entered, the subscription is checked and if the subscription is active, the page opens. If the subscription is not active, the page does not open. All pages will be like this.
But my problem is this:
I just want it to check Subscription A when checking subscription on page A.
When I do it according to the narration on the extension's page, it checks with all subscription and opens all pages if there is any subscription.
So if I have Subscription A, I can also access Page B and Page C.
However, the person who has Subscription A should only be able to access Page A. It should not be able to reach other pages.
I think I need to change the listOwnSubscritions to only run the relevant subscription when running the OwnItemsLoaded event, but I haven't been successful even though I tried hard.
Sorry I'm currently traveling... just sitting at the gate at Frankfurt Airport...
As already answered by private email:
Please follow the Simple Subscription example here http://puravidaapps.com/billing.php and adjust it to your needs. In the OwnItemsLoaded event you can find out, if a subscription was purchased or not. Only if it was purchased, then open that pape A or B.
To find out, if an item is in a list, use the is in list block...
Please try the suggestion and if you still are stuck, post a screenshot of your latest relevant blocks