You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <InAppPurchases/InAppPurchasesInterface.h>
|
|
#include "InAppPurchasesDelegate.h"
|
|
|
|
namespace InAppPurchases
|
|
{
|
|
class InAppPurchasesApple
|
|
: public InAppPurchasesInterface
|
|
{
|
|
public:
|
|
void Initialize() override;
|
|
|
|
~InAppPurchasesApple();
|
|
|
|
void QueryProductInfo(AZStd::vector<AZStd::string>& productIds) const override;
|
|
void QueryProductInfo() const override;
|
|
|
|
void PurchaseProduct(const AZStd::string& productId, const AZStd::string& developerPayload) const override;
|
|
void PurchaseProduct(const AZStd::string& productId) const override;
|
|
|
|
void QueryPurchasedProducts() const override;
|
|
|
|
void RestorePurchasedProducts() const override;
|
|
|
|
void ConsumePurchase(const AZStd::string& purchaseToken) const override;
|
|
|
|
void FinishTransaction(const AZStd::string& transactionId, bool downloadHostedContent) const override;
|
|
|
|
InAppPurchasesCache* GetCache() override;
|
|
|
|
private:
|
|
InAppPurchasesDelegate* m_delegate;
|
|
};
|
|
|
|
|
|
|
|
class ProductDetailsApple
|
|
: public ProductDetails
|
|
{
|
|
public:
|
|
AZ_RTTI(ProductDetailsApple, "{AAF5C20F-482A-45BC-B975-F5864B4C00C5}", ProductDetails);
|
|
};
|
|
}
|