Files
keyboard/keyBoard/Class/Pay/M/IAPVerifyTransactionObj.h
2025-12-16 13:49:08 +08:00

26 lines
737 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// IAPVerifyTransactionObj.h
// 将 Swift 内购验签逻辑迁移到 Objective-C
//
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
#import "FGIAPVerifyTransaction.h"
NS_ASSUME_NONNULL_BEGIN
FOUNDATION_EXPORT NSNotificationName const KBIAPDidCompletePurchaseNotification;
@interface IAPVerifyTransactionObj : NSObject <FGIAPVerifyTransaction>
/// 校验票据StoreKit 2 入口)
/// - Parameters:
/// - receipt: Base64 编码的票据
/// - completion: 回调success 表示验签成功statusCode 为后端状态码
- (void)verifyReceipt:(NSString *)receipt
completion:(void (^)(BOOL success, NSString * _Nullable message, NSInteger statusCode))completion;
@end
NS_ASSUME_NONNULL_END