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

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