Before getting started, you'll need to make sure you have access to the following:
- Access to the Admiral dashboard for the site
- Access to the CMS and/or Landing Page builder for the site
In order to trigger the display of the checkout window, you will need to call the transact.subscribe view. By default this view will show offers targeted to that user, but it also accepts offerID as an option if you want to open the checkout window with a specific offer (or offers) preselected.
Additionally, sending gift: true as an option will open the subscribe window to the UI for purchasing a gift.
More information on this view/others: https://docs.getadmiral.com/docs/js-api-views
Example of how to call this view: https://docs.getadmiral.com/docs/js-api-examples#open-the-subscribe-window-with-offer-id
You can find the offerIDs in your Admiral dashboard in the Offers section.
You will pass these offerIDs when calling the transact.subscribe view to determine which Offers will be displayed to the user.
To display multiple offers, simply pass the offerIDs with commas in the transact.subscribe event.
Once your events have been setup, users will be able to trigger the checkout process on your Landing Page.