This repository has been archived by the owner on Dec 7, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInAppPurchaseManager.h
executable file
·55 lines (40 loc) · 1.73 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
//
// 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>
#import <Cordova/CDVPlugin.h>
#import <Cordova/NSData+Base64.h>
#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;
+ (NSMutableDictionary *)requestedProduct;
@end
@interface ProductsRequestDelegate : NSObject <SKProductsRequestDelegate>{
NSString* successCallback;
NSString* failCallback;
InAppPurchaseManager* command;
}
@property (nonatomic, copy) NSString* successCallback;
@property (nonatomic, copy) NSString* failCallback;
@property (nonatomic, strong) InAppPurchaseManager* command;
@end;
@interface BatchProductsRequestDelegate : NSObject <SKProductsRequestDelegate> {
NSString* callback;
InAppPurchaseManager* command;
}
@property (nonatomic, copy) NSString* callback;
@property (nonatomic, strong) InAppPurchaseManager* command;
@end;