// // GHWSDKPaymentTransactionHandler.h // GHWSdkUI // // Created by wuyx on 15/8/19. // Copyright (c) 2015骞� GHW-T-01. All rights reserved. // #import <Foundation/Foundation.h> #import <StoreKit/StoreKit.h> extern NSString *CACHE_KEY_PAYMENT_TRANSACTION; @interface WAAPPaymentTransactionHandler : NSObject @property(strong,nonatomic)NSMutableDictionary* unConsumeOrderList; /** * 灏嗕笂鎶ュけ璐ョ殑璁㈠崟淇濆瓨鍒扮紦瀛樹腑 * * @param skPaymentTransaction * @param status */ +(void)saveCacheWithPaymentTransaction:(SKPaymentTransaction*)skPaymentTransaction andStatus:(NSInteger)status; /** * 閫氳繃skProduct 鑾峰彇鏈秷鑰楄鍗曞垪琛� * * @param skProduct * * @return NSMutableArray */ +(NSMutableArray*)getUnconsumeOrderListWithProduct:(SKProduct*)skProduct; /** * 澶勭悊鏈秷鑰楄鍗� * * @param unComsumeList 鏈秷鑰楄鍗曞垪琛� */ +(void)handleWithUnComsumeList:(NSArray*)unComsumeList; /** * 閲嶈瘯鎴愬姛,绉婚櫎鏈秷鑰楄鍗� * * @param skPaymentTransaction */ +(void)removeUncomsumeListWithPaymentTransaction:(SKPaymentTransaction *)skPaymentTransaction; +(BOOL)isInit; @end