InAppPurchase
external interface InAppPurchase : <ERROR CLASS> ERROR CLASS: Symbol not found for node.events.EventEmitter(source)
Properties
Link copied to clipboard
abstract val transactionsUpdatedEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple2<electron/core/Event<*>, ERROR CLASS: Symbol not found for js.array.ReadonlyArray<electron/core/Transaction>>>
Functions
Link copied to clipboard
whether a user can make a payment.
Link copied to clipboard
Completes all pending transactions.
Link copied to clipboard
Completes the pending transactions corresponding to the date.
Link copied to clipboard
abstract fun getProducts(productIDs: ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<electron/core/Product>>
Resolves with an array of Product
objects.
Link copied to clipboard
the path to the receipt.
Link copied to clipboard
abstract fun purchaseProduct(productID: String): ERROR CLASS: Symbol not found for Promise<kotlin/Boolean>
abstract fun purchaseProduct(productID: String, opts: PurchaseProductOpts = definedExternally): ERROR CLASS: Symbol not found for Promise<kotlin/Boolean>
abstract fun purchaseProduct(productID: String, opts: Double = definedExternally): ERROR CLASS: Symbol not found for Promise<kotlin/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.