// // InAppPurchaseManager.h // beetight // // Created by Matt Kane on 20/02/2011. // Copyright 2011 Matt Kane. All rights reserved. // #import #import #ifdef CORDOVA_FRAMEWORK #import #else #import "CDVPlugin.h" #endif #ifdef CORDOVA_FRAMEWORK #import #else #import "NSData+Base64.h" #endif #import "SKProduct+LocalizedPrice.h" @interface InAppPurchaseManager : CDVPlugin { } - (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; @end @interface ProductsRequestDelegate : NSObject { 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 { NSString* callback; InAppPurchaseManager* command; } @property (nonatomic, copy) NSString* callback; @property (nonatomic, retain) InAppPurchaseManager* command; @end;