fix: Add transaction details to StoreKit callbacks
This commit is contained in:
parent
95aad7ac82
commit
15607f0beb
4 changed files with 63 additions and 28 deletions
|
@ -2,6 +2,7 @@
|
|||
#define IOS_CONTROLLER_H
|
||||
|
||||
#include "protocols/vpnprotocol.h"
|
||||
#include <functional>
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <Foundation/Foundation.h>
|
||||
|
@ -54,8 +55,13 @@ public:
|
|||
bool shareText(const QStringList &filesToSend);
|
||||
QString openFile();
|
||||
|
||||
bool purchaseProduct(const QString &productId);
|
||||
bool restorePurchases();
|
||||
void purchaseProduct(const QString &productId,
|
||||
std::function<void(bool success,
|
||||
const QString &transactionId,
|
||||
const QString &purchasedProductId,
|
||||
const QString &errorString)> &&callback);
|
||||
void restorePurchases(std::function<void(bool success,
|
||||
const QString &errorString)> &&callback);
|
||||
|
||||
void requestInetAccess();
|
||||
signals:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue