//
//  ApplePay.h
//  dsgdfhdfh
//
//  Created by 看看智能 on 2017/12/12.
//  Copyright © 2017年 peter. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>

@interface ApplePay : NSObject<SKPaymentTransactionObserver,SKProductsRequestDelegate>
@property(nonatomic,strong)NSString *ID;
@property(nonatomic,strong)NSString *productID;
@property(nonatomic,strong)NSString *ListID;

@property (nonatomic,strong) SKPaymentTransaction *currentTransaction;


+ (ApplePay *)manager;
-(void)buyProductsWithId:(NSString *)productsId and:(NSString*)ID andList:(NSString*)listID;
- (void)launch;
- (void)terminate;
- (void)removeOldTransaction;

- (void)verifyTransactionResult:(NSDictionary*)dicts;


@end
