Namespace for the cordova-plugin-purchase plugin.
All classes, enumerations and variables defined by the plugin are in this namespace.
Throughout the documentation, in order to keep examples readable, we omit the CdvPurchase prefix.
CdvPurchase
When you see, for example ProductType.PAID_SUBSCRIPTION, it refers to CdvPurchase.ProductType.PAID_SUBSCRIPTION.
ProductType.PAID_SUBSCRIPTION
CdvPurchase.ProductType.PAID_SUBSCRIPTION
In the files that interact with the plugin, I recommend creating those shortcuts (and more if needed):
const {store, ProductType, Platform, LogLevel} = CdvPurchase; Copy
const {store, ProductType, Platform, LogLevel} = CdvPurchase;
Namespace for the cordova-plugin-purchase plugin.
All classes, enumerations and variables defined by the plugin are in this namespace.
Throughout the documentation, in order to keep examples readable, we omit the
CdvPurchase
prefix.When you see, for example
ProductType.PAID_SUBSCRIPTION
, it refers toCdvPurchase.ProductType.PAID_SUBSCRIPTION
.In the files that interact with the plugin, I recommend creating those shortcuts (and more if needed):