Display the pricing table
Context
Section titled “Context”The Offer Presentation Grid is a hosted page that allows you to display to the customer the list of available offers for subscription. The goal is to enable them to compare different options related to your service and choose the one that suits them best.
If they click on a “Subscribe” button, they will be redirected directly to the subscription workflow.
Procedure
Section titled “Procedure”To include this page on your website, you need to retrieve the link associated with your customer.
The page is linked to a customer because the page and the resulting processes will be displayed based on their context.
1/ Retrieve the link during customer creation
Section titled “1/ Retrieve the link during customer creation”Request:
POST https://api-2.proabono.com/v1/Customer{ "ReferenceCustomer": "123456", "Name": "John Doe", "Email": "john@doe.com", "Language": "en"}Response:
{ "Id": 72461, "IdSegment": 3, "ReferenceCustomer": "123456", "ReferenceSegment": "sandbox-eur", "Name": "John Doe", "Email": "john@doe.com", "Language": "en", "Links": [ { "rel": "hosted-collection-offers", "href": "https://sandbox-eur.proabono.com/pricing/{Unique-Encrypted-URL1}" }, { "rel": "hosted-home", "href": "https://sandbox-eur.proabono.com/portal/{Unique-Encrypted-URL2}" }, { "rel": "hosted-register", "href": "https://sandbox-eur.proabono.com/register/{Unique-Encrypted-URL3}" } ]}With this call, you will create or update the correct customer and dynamically retrieve the link to the offer presentation page.
Copy the href link corresponding to the key “hosted-collection-offers” (https://sandbox-eur.proabono.com/pricing/xxxxx in our example).
2/ Redirect the customer to the offer presentation page
Section titled “2/ Redirect the customer to the offer presentation page”Once you have retrieved the correct link, you should use it as the source of an Iframe.