Pass multiple transactions at the same time
This follows the design of SKPayment API.
This commit is contained in:
parent
2dd545ebda
commit
e77ddd3221
6 changed files with 35 additions and 33 deletions
|
@ -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
|
||||
|
||||
|
|
11
docs/api/structures/transaction.md
Normal file
11
docs/api/structures/transaction.md
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue