29 lines
516 B
Objective-C
29 lines
516 B
Objective-C
//
|
|
// IAPManager.h
|
|
// YuMi
|
|
//
|
|
// Created by P on 2024/9/24.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface IAPManager : NSObject
|
|
|
|
+ (instancetype)sharedManager;
|
|
|
|
- (void)purchase:(NSString *)productId
|
|
success:(void(^)(NSString *transactionID, NSString *orderID))success
|
|
failure:(void(^)(NSError *error))failure
|
|
contactCS:(void(^)(NSString *uid))contactCS;
|
|
|
|
- (void)retryCheckAllReceipt;
|
|
|
|
- (void)handleLogin;
|
|
- (void)handleLogout;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|