-
Notifications
You must be signed in to change notification settings - Fork 0
/
inapppurchase.h
58 lines (42 loc) · 1.11 KB
/
inapppurchase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef inapppurchase_h
#define inapppurchase_h
#ifdef __cplusplus
extern "C" {
#endif
int ReceiptValidation();
typedef struct tagPayInfo
{
long iQuantity;
char szProductID[125];
char szTransantionID[125];
char szPurchaseDate[125];
}TPayInfo;
typedef struct TPayInfoList{
int counts;
TPayInfo* pro; // free(pro);
}TPayInfoList;
int GetInAppLists(TPayInfoList*);
typedef struct tagProductInfo
{
char szProductID[125];
char szTitle[125];
char szPrice[125];
char szDescription[255];
}TProductInfo;
typedef struct TProductInfoList{
int counts;
TProductInfo* pro; // free(pro);
}TProductInfoList;
typedef struct TProId{
char pid[125];
}TProId;
typedef struct TProductIdList{
int counts;
TProId* pidlist;
}TProductIdList;
int GetInAppInfo(TProductInfoList* outlist,TProductIdList* inlist);
int InAppPurchase(char* productID);
#ifdef __cplusplus
}
#endif
#endif /* inapppurchase_h */