feat: added username to IAP purchaseProduct method (#35902)

This commit is contained in:
Michał Zarach 2022-12-12 19:11:48 +01:00 committed by GitHub
parent 4e66184287
commit 6a798b1c58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 11 deletions

View file

@ -178,9 +178,11 @@ v8::Local<v8::Promise> InAppPurchase::PurchaseProduct(
int quantity = 1;
args->GetNext(&quantity);
std::string username = "";
args->GetNext(&username);
in_app_purchase::PurchaseProduct(
product_id, quantity,
product_id, quantity, username,
base::BindOnce(gin_helper::Promise<bool>::ResolvePromise,
std::move(promise)));