feat: enable explicit IAP restoration (#21461)
This commit is contained in:
parent
53957d47d6
commit
dba8a0caa8
7 changed files with 43 additions and 23 deletions
|
@ -85,6 +85,8 @@ void InAppPurchase::BuildPrototype(v8::Isolate* isolate,
|
|||
prototype->SetClassName(gin::StringToV8(isolate, "InAppPurchase"));
|
||||
gin_helper::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
|
||||
.SetMethod("canMakePayments", &in_app_purchase::CanMakePayments)
|
||||
.SetMethod("restoreCompletedTransactions",
|
||||
&in_app_purchase::RestoreCompletedTransactions)
|
||||
.SetMethod("getReceiptURL", &in_app_purchase::GetReceiptURL)
|
||||
.SetMethod("purchaseProduct", &InAppPurchase::PurchaseProduct)
|
||||
.SetMethod("finishAllTransactions",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue