-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathInAppPurchaseManager.h
61 lines (47 loc) · 1.81 KB
/
InAppPurchaseManager.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
59
60
61
//
// InAppPurchaseManager.h
// beetight
//
// Created by Matt Kane on 20/02/2011.
// Copyright 2011 Matt Kane. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
#ifdef CORDOVA_FRAMEWORK
#import <CordovaLib/CDVPlugin.h>
#else
#import "CDVPlugin.h"
#endif
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/NSData+Base64.h>
#else
#import "NSData+Base64.h"
#endif
#import "SKProduct+LocalizedPrice.h"
@interface InAppPurchaseManager : CDVPlugin <SKPaymentTransactionObserver> {
}
- (void) setup:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) makePurchase:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) requestProductData:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) requestProductsData:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
- (void) paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions;
- (void) paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error;
- (void) paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue;
// - (void) paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions;
@end
@interface ProductsRequestDelegate : NSObject <SKProductsRequestDelegate>{
NSString* successCallback;
NSString* failCallback;
InAppPurchaseManager* command;
}
@property (nonatomic, copy) NSString* successCallback;
@property (nonatomic, copy) NSString* failCallback;
@property (nonatomic, retain) InAppPurchaseManager* command;
@end;
@interface BatchProductsRequestDelegate : NSObject <SKProductsRequestDelegate> {
NSString* callback;
InAppPurchaseManager* command;
}
@property (nonatomic, copy) NSString* callback;
@property (nonatomic, retain) InAppPurchaseManager* command;
@end;