Pass multiple transactions at the same time

This follows the design of SKPayment API.
This commit is contained in:
Cheng Zhao 2018-01-10 17:18:23 +09:00
parent 2dd545ebda
commit e77ddd3221
6 changed files with 35 additions and 33 deletions

View file

@ -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

View file

@ -0,0 +1,11 @@
# 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