-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Tj3n/master
Update 3.1.1: PWCoreSDK, PWAlipayPlugin, PWWechatpayPlugin
- Loading branch information
Showing
31 changed files
with
884 additions
and
511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file added
BIN
+776 Bytes
Plugins/PWAlipayPlugin/AlipaySDK.framework/AlipaySDK-inside-Info.plist
Binary file not shown.
56 changes: 56 additions & 0 deletions
56
Plugins/PWAlipayPlugin/AlipaySDK.framework/Headers/AFServiceCenter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// | ||
// AFServiceCenter.h | ||
// AFServiceSDK | ||
// | ||
// Created by jiajunchen on 02/01/2018. | ||
// Copyright © 2018 antfin. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class AFServiceResponse; | ||
|
||
/** | ||
SDK支持的业务枚举值 | ||
- AFServiceEInvoice: 电子发票 | ||
- AFServiceAuth: 账户授权 | ||
*/ | ||
typedef NS_ENUM(NSUInteger, AFService) { | ||
AFServiceEInvoice, | ||
AFServiceAuth, | ||
AFServiceDeduct | ||
}; | ||
|
||
|
||
extern NSString * const kAFServiceOptionBizParams; // 钱包服务调用入参 | ||
extern NSString * const kAFServiceOptionCallbackScheme; // 业务回跳当前app的scheme | ||
extern NSString * const kAFServiceOptionNotUseLanding; // 不使用支付宝提示下载页做补偿,为true时需要商户自己处理用户未安装支付宝的情况 | ||
extern NSString * const kAFServiceBizParamsKeyUrl; // 独立签约入参url | ||
|
||
typedef void(^AFServiceResultBlock)(AFServiceResponse *response); | ||
|
||
@interface AFServiceCenter : NSObject | ||
|
||
/** | ||
调用钱包服务 | ||
@param service 业务service, 见AFService枚举值 | ||
@param params 参数Dictionary, key值详情参见kAFServiceOptionBizParams、kAFServiceOptionCallbackScheme注释 | ||
@param block 业务结果回调的block, block参数是AFServiceResponse类型,业务结果通过result属性获取,如果未用户未安装支付宝并且kAFServiceOptionNotUseLanding未设置为true,会使用H5landing页做补偿,这种情况下不会有block回调结果。 | ||
*/ | ||
+ (void)callService:(AFService)service | ||
withParams:(NSDictionary *)params | ||
andCompletion:(AFServiceResultBlock)block; | ||
|
||
|
||
/** | ||
处理钱包服务回跳APP的URL | ||
@param url 回跳URL | ||
@param block 业务结果回掉的block,详情见调用接口入参上的block。注意此接口上的block只有在跳转钱包后,当前APP被系统回收的情况下回跳才生效 | ||
*/ | ||
+ (void)handleResponseURL:(NSURL *)url | ||
withCompletion:(AFServiceResultBlock)block; | ||
|
||
@end |
43 changes: 43 additions & 0 deletions
43
Plugins/PWAlipayPlugin/AlipaySDK.framework/Headers/AFServiceResponse.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// AFServiceResponse.h | ||
// AFServiceSDK | ||
// | ||
// Created by jiajunchen on 08/01/2018. | ||
// Copyright © 2018 antfin. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** | ||
钱包服务调用结果状态吗 | ||
- AFResSuccess: 默认值,业务调用成功,结果数据参见result字段 | ||
- AFResInvalidService: service枚举值错误 | ||
- AFResInvalidURL: 钱包回跳URL错误 | ||
- AFResRepeatCall: 业务重复调用(3s内) | ||
- AFResOpenURLErr: 跳转失败 | ||
*/ | ||
typedef NS_ENUM(NSUInteger, AFResCode) { | ||
AFResSuccess = 0, | ||
AFResInvalidService = 100, | ||
AFResInvalidURL, | ||
AFResRepeatCall, | ||
AFResOpenURLErr, | ||
}; | ||
|
||
|
||
@interface AFServiceResponse : NSObject | ||
|
||
|
||
/** | ||
业务调用状态吗 | ||
*/ | ||
@property (nonatomic, assign) AFResCode responseCode; | ||
|
||
|
||
/** | ||
业务结果Dictionary, 内容请参考具体业务方接入文档 | ||
*/ | ||
@property (readonly) NSDictionary *result; | ||
|
||
@end |
6 changes: 3 additions & 3 deletions
6
Plugins/PWAlipayPlugin/AlipaySDK.framework/Headers/APayAuthInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.