| 123456789101112131415161718192021222324252627282930313233 |
- //
- // NewiPhonePurchaseHelper.h
- // MingMen
- //
- // Created by 罗云飞 on 2017/4/27.
- // Copyright © 2017年 罗云飞. All rights reserved.
- //
- // 此类用于苹果内购
- #import <Foundation/Foundation.h>
- #import <StoreKit/StoreKit.h>
- @interface NewiPhonePurchaseHelper : NSObject<SKPaymentTransactionObserver,SKProductsRequestDelegate>
- /*!
- * @brief 苹果内购相关API封装
- * @author 罗云飞
- */
- + (instancetype)sharedInstance;
- // NOTE: 支付回调
- @property(nonatomic,copy)void (^NewiPhonePurchaseCallback)(NSString *string);
- // NOTE: 添加一个交易队列观察者
- - (void)setiPhonePurchase;
- // NOTE: 调用支付API
- - (void)iPhonePurchasePay:(NSDictionary *)orderDictionary;
- @end
|