Subscription Page Tagging
The Subscriber Dashboard is where a customer can interact with their subscriptions. In order for this interface to exist, please create a new page under your site's My Account section to hold the Subscriber Dashboard content. This URL should redirect to the login page if the user is not logged in. Please provide the relative path of this page in the Ordergroove Subscription Settings.
Please add the following div to the page
<div id="og-msi" ng-jq=""></div>
Please add the following JS tag
You'll need to create an authentication page for Ordergroove to retrieve a cookie containing elements to validate that a user is logged into your site securely. This page should not require logging in to view it and must be HTTPS.
Please provide the relative path of this page in the Ordergroove Subscription Settings.
Cookie and Signature Creation
When the authentication page loads, you should create a signature and set it as a "secure" cookie and not HTTP only. Please refer to the HMAC instructions from the Authentication and Encryption article.
The cookie contents will have the following format:
Steps for Ordergroove to load the Subscriber Dashboard
- The browser loads Subscriber Dashboard by visiting the Subscriber Dashboard URL. It must be HTTPS.
- On authentication page load, the merchant creates a signature with the user_id and timestamp as specified in the Authentication and Encryption article. The merchant sets the signature, the user_id and the timestamp as a "secure" cookie, but not an "HTTP only" cookie. The path of the cookie should be "/".
- The Subscriber Dashboard browser page retrieves the signature from the secure cookie and uses it to make API calls
- The Ordergroove server returns the appropriate response if the signature matches and the timestamp is within the last 2 hours.