Display Monthly Price Breakdown using Pricing API
Overview
Use Pricing API to display monthly price breakdown on a Plan Selection Page.
After you've integrated this API, your website will automatically request localized pricing information from the Cleverbridge platform based on the customer's IP address. There is no need for price management on your end.
Display Monthly Price Breakdown
Display monthly breakdown on plan selection page to give an incentive to customer to subscribe to longer plans.
Cloudbit, a fictional company that provides security software for corporate networks, offers the following plans:
| Plan | Recurring Price |
|---|---|
| Monthly Subscription | $20 per month |
| Yearly Subscription | $150 per year |
| Bi-Yearly Subscription | $250 per 2 years |
| Tri-Yearly Subscription | $350 per 3 years |
During a marketing campaign, Cloudbit decides that they want to try to entice customers to subscribe to longer plans which create long-lasting relationships and provide better value for money by allowing them to compare the monthly price of each plan.
To do so, they create a plan selection page on their website, which displays the following monthly price breakdowns:
| Plan | Recurring Price | Monthly Breakdown |
|---|---|---|
| Monthly Subscription | $20 per month | $20 per month |
| Yearly Subscription | $150 per year | $12.50 per month |
| Bi-Yearly Subscription | $250 per 2 years | $10.42 per month |
| Tri-Yearly Subscription | $350 per 3 years | $4.86 per month |
Implement Pricing API
Before you start
Make sure that products can be subscribed to for a yearly or multi-year payment.
If not set up, set up using:
- Commerce Assistant
- web admin tool
STEP 1:
Completed the following instructions: Integrate the Pricing API.
STEP 2:
Load the pricing information on the plan selection page using the following CSS classes:
| CSS Class | Function |
|---|---|
| cleverApi-{product_id}-monthlyPriceGross | the gross price per month will be displayed |
| cleverApi-{product_id}-priceGrossLocalized | the localized gross price information will be displayed |
NoteFor a full list of the CSS classes that are available, see step 5 in Integrate the Pricing API.
ImportantIf you want to build your plan selection page with our APIs, but do not want to use the SDK described in Integrate the Pricing API, see the Pricing API (REST) and cart (GraphQL) reference documentation.
Result
To view this plan selection page in a browser, open the Cloudbit Demo Page.
Updated 5 months ago