mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Pass multiple transactions at the same time
This follows the design of SKPayment API.
This commit is contained in:
@@ -8,23 +8,14 @@ Process: [Main](../glossary.md#main-process)
|
||||
|
||||
The `inAppPurchase` module emits the following events:
|
||||
|
||||
### Event: 'transaction-updated'
|
||||
### Event: 'transactions-updated'
|
||||
|
||||
Emitted when a transaction has been updated.
|
||||
Emitted when one or more transactions have been updated.
|
||||
|
||||
Returns:
|
||||
|
||||
* `event` Event
|
||||
* `transaction` Object
|
||||
* `transactionIdentifier` String
|
||||
* `transactionDate` String
|
||||
* `originalTransactionIdentifier` String
|
||||
* `transactionState` String - The transaction sate (`"purchasing"`, `"purchased"`, `"failed"`, `"restored"`, or `"deferred"`)
|
||||
* `errorCode` Integer
|
||||
* `errorMessage` String
|
||||
* `payment` Object
|
||||
* `productIdentifier` String
|
||||
* `quantity` Integer
|
||||
* `transactions` ([Transaction[]](structures/transaction.md) - Array of transactions.
|
||||
|
||||
## Methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user