iFun Engine API  1.0.0-b6053
Great Technology for Great Games
Classes | Typedefs | Enumerations | Functions
billing.h File Reference
#include <funapi/player_account.h>
#include <funapi/types.h>
#include <vector>

Go to the source code of this file.

Classes

struct  fun::ReceiptValidationRequest
 

Typedefs

typedef function< void(const ReceiptValidationRequest &request, const ReceiptValidationResponse &response, const bool &error)> fun::BillingResponseHandler
 
typedef function< void(const ReceiptValidationRequest &request, const ReceiptValidationResponse &response, const std::vector< string > &transaction_ids, const bool &error)> fun::BillingResponseHandler2
 
typedef string fun::Receipt
 

Enumerations

enum  ReceiptValidationResponse {
  kSuccess = 0, kFailAlreadyProvisioned = 1000, kFailWrongReceipt = 1001, kFailWrongServiceProvider = 1002,
  kFailNotAuthenticatedServiceProvider = 1003, kFailCancelledReceipt = 1004, kFailAuthenticationRequired = 1005, kFailProductInformationNotFound = 1006,
  kFailPendingReceipt = 1007, kBillingSystemError = 2000
}
 

Functions

FUNAPI_DLL_VISIBILITY fun::DEPRECATED (Receipt MakeTStoreReceipt(const string &txid, const string &appid, const string &signdata, const std::vector< string > &products, bool use_tstore_test_server))
 
FUNAPI_DLL_VISIBILITY Receipt fun::MakeAppleAppStoreReceipt (const string &receipt_data, const string &product_id, int64_t quantity)
 
FUNAPI_DLL_VISIBILITY Receipt fun::MakeGooglePlayReceipt (const string &package_name, const string &product_id, const string &purchase_token)
 
FUNAPI_DLL_VISIBILITY Receipt fun::MakeOneStoreReceipt (const string &txid, const string &appid, const string &signdata, const std::vector< string > &products, bool use_one_store_test_server)
 
FUNAPI_DLL_VISIBILITY Receipt fun::MakeOneStoreReceiptV5 (const string &purchase_id, const string &package_name, const string &product_id)
 
FUNAPI_DLL_VISIBILITY void fun::ValidateReceipt (const ReceiptValidationRequest &request, const BillingResponseHandler &handler)
 
FUNAPI_DLL_VISIBILITY void fun::ValidateReceipt2 (const ReceiptValidationRequest &request, const BillingResponseHandler2 &handler)
 
FUNAPI_DLL_VISIBILITY bool fun::ValidateReceiptSync (const ReceiptValidationRequest &request, ReceiptValidationResponse *response)
 
FUNAPI_DLL_VISIBILITY bool fun::ValidateReceiptSync2 (const ReceiptValidationRequest &request, ReceiptValidationResponse *response, std::vector< string > *transaction_ids)