feat: enable explicit IAP restoration (#21461)

This commit is contained in:
Shelley Vohr 2019-12-17 07:07:11 -08:00 committed by GitHub
parent 53957d47d6
commit dba8a0caa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 43 additions and 23 deletions

View file

@ -17,13 +17,15 @@ typedef base::OnceCallback<void(bool isProductValid)> InAppPurchaseCallback;
// --------------------------- Functions ---------------------------
bool CanMakePayments(void);
bool CanMakePayments();
void FinishAllTransactions(void);
void RestoreCompletedTransactions();
void FinishAllTransactions();
void FinishTransactionByDate(const std::string& date);
std::string GetReceiptURL(void);
std::string GetReceiptURL();
void PurchaseProduct(const std::string& productID,
int quantity,