To Use Paywall Feature

Now editor can mark news type content as premium content. If user wants to read the full story then he/she have to pay for that. Currently premium feature is implemented only for news type item. If you mark any news as premium content then only non-premium fields will be visible to user. If user clicks on the news system will check whether the user is paid or unpaid. If he has paid then he can read the full news otherwise not. Payment should be made to a third party who is responsible for managing users premium account.

The full solution for payment system involved communication with the third party system. The steps are depicted below-

  • When user clicks on premium news he will be promted to go to payment system if he has not paid.

  • Then third party payment systems will set cookie for that user with appropriate expiration date.

  • User will be redirected to the news site. There should be a Cache Server (e.g Varnish). Cache Server will check the existance of the cookie. If cookie is present then it will add a value PAYWALL_OPEN in HTTP header.

  • Then Escenic filter chain will check if the PAYWALL_OPEN is set or not. If it is set then filter chain will set a request scope attibute called com.escenic.paywall.context

  • Then the template JSP read the paywall context and displays fields based on this

graphics/paywall_working_flow.png