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;
- CancelationReason
- ErrorCode
- LogLevel
- PaymentMode
- Platform
- PriceConsentStatus
- ProductType
- RecurrenceMode
- RenewalIntent
- TransactionState
- Adapter
- AdditionalData
- Console
- IError
- IRegisterProduct
- IapticConfig
- PaymentRequest
- PostalAddress
- PricingPhase
- TransactionMonitor
- VerifiedPurchase
- When
Ƭ Callback<T
>: (t
: T
) => void
Name |
---|
T |
▸ (t
): void
Callback
Name | Type |
---|---|
t |
T |
void
Ƭ IPeriodUnit: "Minute"
| "Hour"
| "Day"
| "Week"
| "Month"
| "Year"
Unit for measuring durations
Ƭ PlatformFunctionality: "requestPayment"
| "order"
| "manageSubscriptions"
| "manageBilling"
Functionality optionality provided by a given platform.
See
Ƭ 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
Ƭ PrivacyPolicyItem: "fraud"
| "support"
| "analytics"
| "tracking"
• Const
PLUGIN_VERSION: "13.0.0"
Current release number of the plugin.
• store: Store
The global store object.