Files
JJBB/Sdk/iOS/YuCheng/ThirdLibs/FWPay/lib/FWInterface.h

69 lines
2.0 KiB
C
Raw Normal View History

2024-08-23 15:49:34 +08:00
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "FWParam.h"
@protocol FWInterfaceDelegate <NSObject>
@required
/*
payid:
success: YES支付成功NO支付失败
message:
*/
- (void)receiveResult:(NSString*)payid result:(BOOL)success message:(NSString*)message;
@optional
/**
@abstract Api版本的SDK返回通道信息
@param types 1234,QQ支付567
*/
- (void)receiveChannelTypes:(NSArray<NSNumber *>*)types;
@end
@interface FWInterface : NSObject
/*
@abstract
@params appIdAPP的唯一标识
@params wxAppIdWXAppId
*/
+(void)init:(NSString *)appId useAPI:(BOOL)useAPI withWXAppId:(NSString *)wxAppId;
/**
@abstract API版本直接支付
@params controller
@params params
@params type 1234,QQ支付567
@params delegate
*/
+ (void)start:(UIViewController *)controller withParams:(FWParam *)params withType:(NSUInteger)type withDelegate:(id<FWInterfaceDelegate>)delegate;
/*
controller
params
delegate
使
*/
+(void)start:(UIViewController *)controller withParams:(FWParam*)params withDelegate:(id<FWInterfaceDelegate>)delegate;
/*
controller
params
delegate
*/
+(void)start:(UIViewController *)controller withParams:(FWParam*)params withDelegate:(id<FWInterfaceDelegate>)delegate withView:(UIView*)view;
/*
*/
+(void)selectChannel:(NSInteger)channelType;
/*
*/
+(void)applicationWillEnterForeground:(UIApplication *)application;
@end