9 #ifndef INCLUDE_FUNAPI_SERVICE_BILLING_H_ 10 #define INCLUDE_FUNAPI_SERVICE_BILLING_H_ 20 typedef string Receipt;
23 Receipt MakeGooglePlayReceipt(
const string &package_name,
24 const string &product_id,
25 const string &purchase_token);
28 Receipt MakeAppleAppStoreReceipt(
const string &receipt_data,
29 const string &product_id,
33 Receipt MakeOneStoreReceipt(
const string &txid,
35 const string &signdata,
36 const std::vector<string> &products,
37 bool use_one_store_test_server);
39 Receipt MakeOneStoreReceiptV5(
const string &purchase_id,
40 const string &package_name,
41 const string &product_id);
44 DEPRECATED(Receipt MakeTStoreReceipt(
const string &txid,
46 const string &signdata,
47 const std::vector<string> &products,
48 bool use_tstore_test_server));
54 const string &service_provider,
56 const Receipt &receipt);
63 enum ReceiptValidationResponse {
65 kFailAlreadyProvisioned = 1000,
66 kFailWrongReceipt = 1001,
67 kFailWrongServiceProvider = 1002,
68 kFailNotAuthenticatedServiceProvider = 1003,
69 kFailCancelledReceipt = 1004,
70 kFailAuthenticationRequired = 1005,
71 kFailProductInformationNotFound = 1006,
72 kFailPendingReceipt = 1007,
73 kBillingSystemError = 2000
78 const ReceiptValidationResponse &response,
79 const bool &error)> BillingResponseHandler;
82 const ReceiptValidationResponse &response,
83 const std::vector<string> &transaction_ids,
84 const bool &error)> BillingResponseHandler2;
88 const BillingResponseHandler &handler);
92 const BillingResponseHandler2 &handler);
96 ReceiptValidationResponse *response);
100 ReceiptValidationResponse *response,
101 std::vector<string> *transaction_ids);
105 #endif // INCLUDE_FUNAPI_SERVICE_BILLING_H_
Account Id.
Definition: player_account.h:20