1 #import <UIKit/UIKit.h>
8 @property (nonatomic, strong) NSString *
productId;
23 @property (nonatomic, assign) CGFloat
price;
30 @property (nonatomic, strong) NSString * currency;
32 -(NSDictionary *) toDictionary;
33 +(instancetype) fromDictionary:(NSDictionary *) dic;
42 @property (nonatomic, strong) NSString * transactionId;
52 @property (nonatomic, strong) NSDate * purchaseDate;
57 @property (nonatomic, assign) NSInteger quantity;
59 -(NSDictionary *) toDictionary;
74 -(void) inAppService:(
LDInAppService *) service didStartPurchase:(NSString *) productId;
83 -(void) inAppService:(
LDInAppService *) service didFailPurchase:(NSString *) productId withError:(NSError *) error;
100 @property (nonatomic, readonly) NSMutableArray * products;
105 @property (nonatomic, assign) BOOL autoFinishPurchases;
108 typedef void(^LDFetchProductsCallback)(NSArray * products, NSError * error);
109 typedef void(^LDValidationCompletion)(NSError * error);
110 typedef void(^LDValidationHandler)(NSData * validationReceipt, NSString *
productId, LDValidationCompletion completion);
112 -(instancetype) init;
141 -(void) fetchProducts: (NSArray *) productIds completion:(LDFetchProductsCallback) completion;
161 -(BOOL) isPurchased:(NSString *) productId;
173 -(NSInteger) stockOfProduct:(NSString *) productId;
183 -(void) restorePurchases:(
void(^)(NSError * error)) completion;
200 -(void) purchase:(NSString *) productId completion:(
void(^)(NSError * error)) completion;
211 -(void) purchase:(NSString *) productId quantity:(NSInteger) quantity completion:(
void(^)(NSError * error)) completion;
222 -(NSInteger) consume:(NSString *) productId quantity:(NSInteger) quantity;
230 -(void) finishPurchase:(NSString *) transactionId;
239 -(void) setValidationHandler:(LDValidationHandler) handler;
245 -(void) setLudeiServerValidationHandler;
NSString * localizedTitle
Definition: LDInAppService.h:13
NSString * localizedPrice
Definition: LDInAppService.h:28
Definition: LDInAppService.h:65
Definition: LDInAppService.h:3
NSString * productId
Definition: LDInAppService.h:8
NSString * localizedDescription
Definition: LDInAppService.h:18
CGFloat price
Definition: LDInAppService.h:23
Definition: LDInAppService.h:95
Definition: LDInAppService.h:37