We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

How to show the billing plan period and the term name in the My Account Library?

For this, you can use the directive​ libraryItem. The two items you're looking for there are libraryItem.termName​ (subscription term description) and libraryItem.billingPlanModel.billingPlanTable[0].period​ (period description).

You can display the subscription price using the variable {{libraryItem.billingPlanModel.price}}.

Below are other price-related variables that can be displayed, you can display any of them by adding the variable {{libraryItem.billingPlanModel.NAME}} with the respective name to your My Account Library template.

      "chargeDisplayAmount":"EUR10.00",
      "chargeAmount":10,
      "nextChargeTotalAmount":"EUR10.00",
      "taxAmount":"EUR1.67",
      "hstAmount":"EUR0.00",
      "qstAmount":"EUR0.00",
      "pstAmount":"EUR0.00",
      "gstAmount":"EUR0.00",
      "taxRate":20,
      "hstRate":null,
      "qstRate":null,
      "pstRate":null,
      "gstRate":null,
      "price":"EUR8.33",
      "totalAmount":"EUR10.00",
      "chargeCurrency":"EUR",
      "isSubscription":true,
      "hasFreeTrial":false,
      "isZero":false,
      "firstRealPrice":"EUR10.00",
      "firstRealPriceWithTax":"EUR10.00 incl. VAT EUR1.67",
      "isCustomPriceAvailable":false,
      "firstPeriod":"1 month"

Those can be added anywhere there is a libraryItem​ object in scope.

If you want to show only the billing period duration (e.g. monthly/yearly), you should be able to display it using a ngIf directive to conditionally display text.

For example:

<span ng-if="variable = 'okayText1' || variable = 'okayText2'">{{ variable }}</span>​

Last updated: