Properties
deferred
deferred: ((productId) => void)
Type declaration
- (productId): void
Returns void
error
error: ((code, message, options?) => void)
Type declaration
- (code, message, options?): void
Parameters
- code: CdvPurchase.ErrorCode
- message: string
Optional
options: {
productId: string;
quantity?: number;
}productId: string
Optional
quantity?: number
Returns void
finished
finished: ((transactionIdentifier, productId) => void)
Type declaration
- (transactionIdentifier, productId): void
Parameters
- transactionIdentifier: string
- productId: string
Returns void
purchaseEnqueued
purchaseEnqueued: ((productId, quantity) => void)
Type declaration
- (productId, quantity): void
Parameters
- productId: string
- quantity: number
Returns void
purchaseFailed
purchaseFailed: ((productId, code, message) => void)
Type declaration
- (productId, code, message): void
Returns void
purchased
purchased: ((transactionIdentifier, productId, originalTransactionIdentifier?, transactionDate?, discountId?) => void)
Type declaration
- (transactionIdentifier, productId, originalTransactionIdentifier?, transactionDate?, discountId?): void
Parameters
- transactionIdentifier: string
- productId: string
Optional
originalTransactionIdentifier: stringOptional
transactionDate: stringOptional
discountId: string
Returns void
purchasing
purchasing: ((productId) => void)
Type declaration
- (productId): void
Returns void
receiptsRefreshed
receiptsRefreshed: ((receipt) => void)
Type declaration
- (receipt): void
Returns void
restoreCompleted
restoreCompleted: (() => void)
restoreFailed
restoreFailed: ((errorCode) => void)
Type declaration
- (errorCode): void
Returns void
restored
restored: ((transactionIdentifier, productId) => void)
Type declaration
- (transactionIdentifier, productId): void
Parameters
- transactionIdentifier: string
- productId: string
Returns void
Called when a transaction is deferred (waiting for approval)