iFun Engine API  1.0.0-b2821
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
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 string fun::Receipt
 

Enumerations

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

Functions

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