InAppPurchase

external interface InAppPurchase(source)

Properties

Link copied to clipboard
abstract val transactionsUpdatedEvent: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
abstract fun canMakePayments(): Boolean

whether a user can make a payment.

Link copied to clipboard
abstract fun finishAllTransactions()

Completes all pending transactions.

Link copied to clipboard
abstract fun finishTransactionByDate(date: String)

Completes the pending transactions corresponding to the date.

Link copied to clipboard
abstract fun getProducts(    productIDs: <Error class: unknown class><String>): <Error class: unknown class><<Error class: unknown class><Product>>

Resolves with an array of Product objects.

Link copied to clipboard
abstract fun getReceiptURL(): String

the path to the receipt.

Link copied to clipboard
abstract fun purchaseProduct(productID: String): <Error class: unknown class><Boolean>
abstract fun purchaseProduct(productID: String, opts: PurchaseProductOpts = definedExternally): <Error class: unknown class><Boolean>
abstract fun purchaseProduct(productID: String, opts: Double = definedExternally): <Error class: unknown class><Boolean>

Returns true if the product is valid and added to the payment queue.

Link copied to clipboard

Restores finished transactions. This method can be called either to install purchases on additional devices, or to restore purchases for an application that the user deleted and reinstalled.