Purchases, Entitlement & Coupons
7min
purple experience summary one of the core aspects of many purple experience apps / websites is that users purchase content, via single purchases or, more commonly, subscribing ways how users can get access to content entitlement login external purchases connected to entitlement app store / playstore purchase of issue / content app store / playstore purchase of "repeatable publication products" / "consumables" app store / playstore purchase of subscription for a publication coupon codes entitlement entitlement allows content to be shown to only authorised users of apps and web more information on entitlement and how to set it up https //docs purplepublish com/setup/entitlement in a new view inside the views json you can set up a login page following this guide on how to set up a login page in the experience builder a login button can be added to the issue component with purchaseoptions inside the views json additionally a login option can be added in the app menu this is done by adding the following lines into the app menu xml which is located inside the default folder 	\<navigationnode targeturl="purple //storefront/resource/dynamic/storefront/index html?title bar=false\&bounces=false\&force status bar=true#/login" access="role anonymous"> \<title>login\</title> \<iconurl>menuicons/login png\</iconurl> \</navigationnode> 	\<navigationnode targeturl="purple //kiosk/entitlement/logout/perform" access="authenticated"> \<title>logout\</title> \<iconurl>menuicons/logout png\</iconurl> \</navigationnode> app store purchases payments please refer to this docs payments https //confluence sprylab com/display/purpledoc/payments (note section "repeatable issue purchases") to test purchases in preview apps for testing app purchases in the preview version of your app, please contact your purple project manager or purple customer success agent so that we can provide you test accounts for the sandboxes for both platforms (ios and android) coupon codes to activate coupons for your app, refer to coupon code function docid\ ann42bskmuoty asizjr8 coupons are used to unlock issues that would otherwise be paid for in publications published over specified time periods they may have a limited period of use and validity in order to integrate coupons into your app, you need to create a view for the coupons docid\ j z4qq5wgeypozzsy8zws to be used you can also add a coupon button to the issue component with purchaseoptions, similarly to the login button to make the coupon page accessible via the app menu, add the following line to the app menu xml \<navigationnode targeturl="purple //storefront/resource/dynamic/storefront/index html?title bar=false\&bounces=false\&force status bar=true#/coupons"> \<title>coupons\</title> \<iconurl>icons/voucher png\</iconurl> \</navigationnode>