Skip to content

Latest commit

 

History

History
163 lines (105 loc) · 4.77 KB

CdvPurchase.md

File metadata and controls

163 lines (105 loc) · 4.77 KB

Namespace: 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 to 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;

Table of contents

Namespaces

Enumerations

Classes

Interfaces

Type Aliases

Variables

Type Aliases

Callback

Ƭ Callback<T>: (t: T) => void

Type parameters

Name
T

Type declaration

▸ (t): void

Callback

Parameters
Name Type
t T
Returns

void


IPeriodUnit

Ƭ IPeriodUnit: "Minute" | "Hour" | "Day" | "Week" | "Month" | "Year"

Unit for measuring durations


PlatformFunctionality

Ƭ PlatformFunctionality: "requestPayment" | "order" | "manageSubscriptions" | "manageBilling"

Functionality optionality provided by a given platform.

See

checkSupport


PlatformWithOptions

Ƭ PlatformWithOptions: { options: AdapterOptions ; platform: BRAINTREE } | { platform: GOOGLE_PLAY } | { options?: AdapterOptions ; platform: APPLE_APPSTORE } | { platform: TEST } | { platform: WINDOWS_STORE }

Used to initialize a platform with some options

See

initialize


PrivacyPolicyItem

Ƭ PrivacyPolicyItem: "fraud" | "support" | "analytics" | "tracking"

Variables

PLUGIN_VERSION

Const PLUGIN_VERSION: "13.0.0"

Current release number of the plugin.


store

store: Store

The global store object.