1234567891011121314151617181920212223242526272829 |
- //
- // IAPManager.h
- // jiaPei
- //
- // Created by 张嵘 on 2022/9/21.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef enum {
- IAPPurchSuccess = 0, // 购买成功
- IAPPurchFailed = 1, // 购买失败
- IAPPurchCancel = 2, // 取消购买
- IAPPurchVerFailed = 3, // 订单校验失败
- IAPPurchVerSuccess = 4, // 订单校验成功
- IAPPurchNotArrow = 5, // 不允许内购
- }IAPPurchType;
- typedef void (^IAPCompletionHandle)(IAPPurchType type,NSData *data, NSString *transactionIdentifier, BOOL isTest);
- @interface IAPManager : NSObject
- + (instancetype)shareIAPManager;
- - (void)startPurchaseWithID:(NSString *)purchID completeHandle:(IAPCompletionHandle)handle;
- @end
- NS_ASSUME_NONNULL_END
|