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
|
@ -82,9 +82,9 @@ void InAppPurchase::PurchaseProduct(const std::string& product_id,
|
|||
in_app_purchase::PurchaseProduct(product_id, quantity, callback);
|
||||
}
|
||||
|
||||
void InAppPurchase::OnTransactionUpdated(
|
||||
const in_app_purchase::Transaction& transaction) {
|
||||
Emit("transaction-updated", transaction);
|
||||
void InAppPurchase::OnTransactionsUpdated(
|
||||
const std::vector<in_app_purchase::Transaction>& transactions) {
|
||||
Emit("transactions-updated", transactions);
|
||||
}
|
||||
|
||||
} // namespace api
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue