Bladeren bron

支付宝集成完成

nanxinlin 6 jaren geleden
bovenliggende
commit
85a101ce81

+ 4 - 4
RainbowPlanet/Podfile.lock

@@ -6,7 +6,7 @@ PODS:
   - DeviceKit (1.11.0)
   - ESTabBarController-swift (2.6.4)
   - FSPagerView (0.8.2)
-  - FWPopupView (4.0.0):
+  - FWPopupView (4.0.1):
     - SnapKit
   - IQKeyboardManagerSwift (6.2.0)
   - Kingfisher (4.10.1)
@@ -30,7 +30,7 @@ PODS:
   - SwiftDate (5.1.0)
   - SwiftyJSON (4.2.0)
   - SwiftyStarRatingView (1.0.4)
-  - UMCAnalytics (6.0.1):
+  - UMCAnalytics (6.0.2):
     - UMCCommon
   - UMCCommon (2.0.0)
   - UMCCommonLog (1.0.0)
@@ -127,7 +127,7 @@ SPEC CHECKSUMS:
   DeviceKit: a3a86f8dddbe1317a9a243cdf9646858bf135dce
   ESTabBarController-swift: 58cca4ab7de980657d99a02181c1ff310983e975
   FSPagerView: 816a18842306973cc7cc6df8a5332272f7815c30
-  FWPopupView: 8942f44e916181e3d59633ed6488ea5846880431
+  FWPopupView: a463a17aab606b0ef222a68784dbf32accba4711
   IQKeyboardManagerSwift: b07ccf9d8cafe993dcd6cb794eb4ba34611a0c4e
   Kingfisher: c148cd7b47ebde9989f6bc7c27dcaa79d81279a0
   MBProgressHUD: e7baa36a220447d8aeb12769bf0585582f3866d9
@@ -143,7 +143,7 @@ SPEC CHECKSUMS:
   SwiftDate: 6329e58969a2de31cea7f1ee1143b247693196e7
   SwiftyJSON: c4bcba26dd9ec7a027fc8eade48e2c911f229e96
   SwiftyStarRatingView: a2b0057700e0adeb8e7442c55d99cb53b531d2f4
-  UMCAnalytics: c267acd9bb4a87e5f01735c158b63a617908f92e
+  UMCAnalytics: 901960ede5a8a85f208bd37689ad3e607b433930
   UMCCommon: 79b5a614c958db367113eed5740109d9a98e1223
   UMCCommonLog: 05a2d5de21858e3d870551562cff405c1366d244
   UMCPush: 628b5c61be5a5036cb31eb9b3a3ab8dce7521691

+ 76 - 0
RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj

@@ -8,6 +8,19 @@
 
 /* Begin PBXBuildFile section */
 		80FB2D3361E2CF97A0ED8090 /* Pods_RainbowPlanet.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 75AF51003C98E1AF94B14775 /* Pods_RainbowPlanet.framework */; };
+		A7807D3F222F70C5009D98BB /* AlipaySDK.bundle in Resources */ = {isa = PBXBuildFile; fileRef = A7807D3D222F70C5009D98BB /* AlipaySDK.bundle */; };
+		A7807D40222F70C5009D98BB /* AlipaySDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D3E222F70C5009D98BB /* AlipaySDK.framework */; };
+		A7807D43222F71EC009D98BB /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D42222F71EC009D98BB /* libc++.tbd */; };
+		A7807D45222F71F7009D98BB /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D44222F71F6009D98BB /* libz.tbd */; };
+		A7807D49222F7237009D98BB /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D48222F7237009D98BB /* CoreMotion.framework */; };
+		A7807D4B222F7248009D98BB /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D4A222F7248009D98BB /* CFNetwork.framework */; };
+		A7807D4D222F725A009D98BB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D4C222F725A009D98BB /* Foundation.framework */; };
+		A7807D4F222F7264009D98BB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D4E222F7264009D98BB /* UIKit.framework */; };
+		A7807D51222F726C009D98BB /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D50222F726B009D98BB /* CoreGraphics.framework */; };
+		A7807D53222F7274009D98BB /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D52222F7274009D98BB /* CoreText.framework */; };
+		A7807D55222F7283009D98BB /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D54222F7283009D98BB /* QuartzCore.framework */; };
+		A7807D57222F7290009D98BB /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D56222F7290009D98BB /* CoreTelephony.framework */; };
+		A7807D58222F7296009D98BB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A7807D46222F7210009D98BB /* SystemConfiguration.framework */; };
 		A7AE0120222E760500F521EA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE011F222E760500F521EA /* AppDelegate.swift */; };
 		A7AE0122222E760500F521EA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7AE0121222E760500F521EA /* ViewController.swift */; };
 		A7AE0125222E760500F521EA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A7AE0123222E760500F521EA /* Main.storyboard */; };
@@ -46,6 +59,19 @@
 		1DD1CA03D797EC66156C1CB4 /* Pods-RainbowPlanet.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RainbowPlanet.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet.debug.xcconfig"; sourceTree = "<group>"; };
 		75AF51003C98E1AF94B14775 /* Pods_RainbowPlanet.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RainbowPlanet.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		8640BD6BD0F44B0788BBD034 /* Pods-RainbowPlanet.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RainbowPlanet.release.xcconfig"; path = "Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet.release.xcconfig"; sourceTree = "<group>"; };
+		A7807D3D222F70C5009D98BB /* AlipaySDK.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = AlipaySDK.bundle; sourceTree = "<group>"; };
+		A7807D3E222F70C5009D98BB /* AlipaySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AlipaySDK.framework; sourceTree = "<group>"; };
+		A7807D42222F71EC009D98BB /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; };
+		A7807D44222F71F6009D98BB /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
+		A7807D46222F7210009D98BB /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
+		A7807D48222F7237009D98BB /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
+		A7807D4A222F7248009D98BB /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
+		A7807D4C222F725A009D98BB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+		A7807D4E222F7264009D98BB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+		A7807D50222F726B009D98BB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+		A7807D52222F7274009D98BB /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; };
+		A7807D54222F7283009D98BB /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+		A7807D56222F7290009D98BB /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
 		A7AE011C222E760500F521EA /* RainbowPlanet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RainbowPlanet.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		A7AE011F222E760500F521EA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
 		A7AE0121222E760500F521EA /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
@@ -74,6 +100,18 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
+				A7807D43222F71EC009D98BB /* libc++.tbd in Frameworks */,
+				A7807D45222F71F7009D98BB /* libz.tbd in Frameworks */,
+				A7807D58222F7296009D98BB /* SystemConfiguration.framework in Frameworks */,
+				A7807D57222F7290009D98BB /* CoreTelephony.framework in Frameworks */,
+				A7807D55222F7283009D98BB /* QuartzCore.framework in Frameworks */,
+				A7807D53222F7274009D98BB /* CoreText.framework in Frameworks */,
+				A7807D51222F726C009D98BB /* CoreGraphics.framework in Frameworks */,
+				A7807D4F222F7264009D98BB /* UIKit.framework in Frameworks */,
+				A7807D4D222F725A009D98BB /* Foundation.framework in Frameworks */,
+				A7807D4B222F7248009D98BB /* CFNetwork.framework in Frameworks */,
+				A7807D49222F7237009D98BB /* CoreMotion.framework in Frameworks */,
+				A7807D40222F70C5009D98BB /* AlipaySDK.framework in Frameworks */,
 				80FB2D3361E2CF97A0ED8090 /* Pods_RainbowPlanet.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
@@ -98,6 +136,17 @@
 		5D12B634780AFE570E29BF0F /* Frameworks */ = {
 			isa = PBXGroup;
 			children = (
+				A7807D56222F7290009D98BB /* CoreTelephony.framework */,
+				A7807D54222F7283009D98BB /* QuartzCore.framework */,
+				A7807D52222F7274009D98BB /* CoreText.framework */,
+				A7807D50222F726B009D98BB /* CoreGraphics.framework */,
+				A7807D4E222F7264009D98BB /* UIKit.framework */,
+				A7807D4C222F725A009D98BB /* Foundation.framework */,
+				A7807D4A222F7248009D98BB /* CFNetwork.framework */,
+				A7807D48222F7237009D98BB /* CoreMotion.framework */,
+				A7807D46222F7210009D98BB /* SystemConfiguration.framework */,
+				A7807D44222F71F6009D98BB /* libz.tbd */,
+				A7807D42222F71EC009D98BB /* libc++.tbd */,
 				75AF51003C98E1AF94B14775 /* Pods_RainbowPlanet.framework */,
 			);
 			name = Frameworks;
@@ -112,6 +161,23 @@
 			name = Pods;
 			sourceTree = "<group>";
 		};
+		A7807D3B222F70A0009D98BB /* Lib */ = {
+			isa = PBXGroup;
+			children = (
+				A7807D3C222F70C5009D98BB /* AlipaySDK */,
+			);
+			path = Lib;
+			sourceTree = "<group>";
+		};
+		A7807D3C222F70C5009D98BB /* AlipaySDK */ = {
+			isa = PBXGroup;
+			children = (
+				A7807D3D222F70C5009D98BB /* AlipaySDK.bundle */,
+				A7807D3E222F70C5009D98BB /* AlipaySDK.framework */,
+			);
+			path = AlipaySDK;
+			sourceTree = "<group>";
+		};
 		A7AE0113222E760400F521EA = {
 			isa = PBXGroup;
 			children = (
@@ -140,6 +206,7 @@
 				A7AE014D222E76A100F521EA /* AppDelegate */,
 				A7AE014E222E76AC00F521EA /* Base */,
 				A7AE015E222E7BDD00F521EA /* Modules */,
+				A7807D3B222F70A0009D98BB /* Lib */,
 				A7AE0121222E760500F521EA /* ViewController.swift */,
 				A7AE0123222E760500F521EA /* Main.storyboard */,
 				A7AE0126222E760500F521EA /* Assets.xcassets */,
@@ -434,6 +501,7 @@
 			files = (
 				A7AE012A222E760500F521EA /* LaunchScreen.storyboard in Resources */,
 				A7AE0127222E760500F521EA /* Assets.xcassets in Resources */,
+				A7807D3F222F70C5009D98BB /* AlipaySDK.bundle in Resources */,
 				A7AE0125222E760500F521EA /* Main.storyboard in Resources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
@@ -758,6 +826,10 @@
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CODE_SIGN_STYLE = Automatic;
+				FRAMEWORK_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/RainbowPlanet/Lib/AlipaySDK",
+				);
 				INFOPLIST_FILE = RainbowPlanet/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
@@ -776,6 +848,10 @@
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CODE_SIGN_STYLE = Automatic;
+				FRAMEWORK_SEARCH_PATHS = (
+					"$(inherited)",
+					"$(PROJECT_DIR)/RainbowPlanet/Lib/AlipaySDK",
+				);
 				INFOPLIST_FILE = RainbowPlanet/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",

BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/alipay_msp_back@2x.png


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/alipay_msp_refresh@2x.png


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/bar@2x.png


File diff suppressed because it is too large
+ 1 - 0
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/bridge.js


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/refresh@2x.png


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/refresh_click@2x.png


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/shutdown@2x.png


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.bundle/shutdown_click@2x.png


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.framework/AlipaySDK


BIN
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.framework/AlipaySDK-inside-Info.plist


+ 33 - 0
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.framework/Headers/APayAuthInfo.h

@@ -0,0 +1,33 @@
+//
+//  APAuthInfo.h
+//  APAuth
+//
+//  Created by antfin on 17-10-24.
+//  Copyright (c) 2017年 AntFin. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface APayAuthInfo : NSObject
+
+@property(nonatomic, copy)NSString *appID;
+@property(nonatomic, copy)NSString *pid;
+@property(nonatomic, copy)NSString *redirectUri;
+
+/**
+ *  初始化AuthInfo
+ *
+ *  @param appIDStr     应用ID
+ *  @param pidStr       商户ID   可不填
+ *  @param uriStr       授权的应用回调地址  比如:alidemo://auth
+ *
+ *  @return authinfo实例
+ */
+- (id)initWithAppID:(NSString *)appIDStr
+                pid:(NSString *)pidStr
+        redirectUri:(NSString *)uriStr;
+
+- (NSString *)description;
+- (NSString *)wapDescription;
+
+@end

+ 203 - 0
RainbowPlanet/RainbowPlanet/Lib/AlipaySDK/AlipaySDK.framework/Headers/AlipaySDK.h

@@ -0,0 +1,203 @@
+//
+//  AlipaySDK.h
+//  AlipaySDK
+//
+//  Created by antfin on 17-10-24.
+//  Copyright (c) 2017年 AntFin. All rights reserved.
+//
+
+
+////////////////////////////////////////////////////////
+///////////////// 支付宝标准版本支付SDK ///////////////////
+/////////// version:15.6.0  motify:2019.02.26///////////
+////////////////////////////////////////////////////////
+
+#import <UIKit/UIKit.h>
+#import "APayAuthInfo.h"
+
+typedef void(^CompletionBlock)(NSDictionary *resultDic);
+
+typedef enum {
+    ALIPAY_TIDFACTOR_IMEI,
+    ALIPAY_TIDFACTOR_IMSI,
+    ALIPAY_TIDFACTOR_TID,
+    ALIPAY_TIDFACTOR_CLIENTKEY,
+    ALIPAY_TIDFACTOR_VIMEI,
+    ALIPAY_TIDFACTOR_VIMSI,
+    ALIPAY_TIDFACTOR_CLIENTID,
+    ALIPAY_TIDFACTOR_APDID,
+    ALIPAY_TIDFACTOR_MAX
+} AlipayTidFactor;
+
+@interface AlipaySDK : NSObject
+
+/**
+ *  创建支付单例服务
+ *
+ *  @return 返回单例对象
+ */
++ (AlipaySDK *)defaultService;
+
+/**
+ *  用于设置SDK使用的window,如果没有自行创建window无需设置此接口
+ */
+@property (nonatomic, weak) UIWindow *targetWindow;
+
+//////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////支付宝支付相关接口/////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  支付接口
+ *
+ *  @param orderStr        支付订单信息字串
+ *  @param schemeStr       调用支付的app注册在info.plist中的scheme
+ *  @param completionBlock 支付结果回调Block,用于wap支付结果回调
+                           跳转支付宝支付时只有当processOrderWithPaymentResult接口的completionBlock为nil时会使用这个bolock
+ */
+- (void)payOrder:(NSString *)orderStr
+      fromScheme:(NSString *)schemeStr
+        callback:(CompletionBlock)completionBlock;
+
+/**
+ *  支付接口 v2
+ *
+ *  @param orderStr        支付订单信息字串
+ *  @param dynamicLaunch   是否使用动态配置策略跳转支付宝支付
+ *  @param schemeStr       调用支付的app注册在info.plist中的scheme
+ *  @param completionBlock 支付结果回调Block,用于wap支付结果回调
+ 跳转支付宝支付时只有当processOrderWithPaymentResult接口的completionBlock为nil时会使用这个bolock
+ */
+- (void)payOrder:(NSString *)orderStr
+   dynamicLaunch:(BOOL)dynamicLaunch
+      fromScheme:(NSString *)schemeStr
+        callback:(CompletionBlock)completionBlock;
+
+/**
+ *  处理支付宝app支付后跳回商户app携带的支付结果Url
+ *
+ *  @param resultUrl        支付宝app返回的支付结果url
+ *  @param completionBlock  支付结果回调 为nil时默认使用支付接口的completionBlock
+ */
+- (void)processOrderWithPaymentResult:(NSURL *)resultUrl
+                      standbyCallback:(CompletionBlock)completionBlock;
+
+/**
+ *  获取交易token。
+ *
+ *  @return 交易token,若无则为空。
+ */
+- (NSString *)fetchTradeToken;
+
+
+//////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////支付宝授权 2.0 相关接口////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  快登授权2.0
+ *
+ *  @param infoStr          授权请求信息字串
+ *  @param schemeStr        调用授权的app注册在info.plist中的scheme
+ *  @param completionBlock  授权结果回调,若在授权过程中,调用方应用被系统终止,则此block无效,
+                            需要调用方在appDelegate中调用processAuth_V2Result:standbyCallback:方法获取授权结果
+ */
+- (void)auth_V2WithInfo:(NSString *)infoStr
+             fromScheme:(NSString *)schemeStr
+               callback:(CompletionBlock)completionBlock;
+
+/**
+ *  处理支付宝app授权后跳回商户app携带的授权结果Url
+ *
+ *  @param resultUrl        支付宝app返回的授权结果url
+ *  @param completionBlock  授权结果回调
+ */
+- (void)processAuth_V2Result:(NSURL *)resultUrl
+             standbyCallback:(CompletionBlock)completionBlock;
+
+
+//////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////支付宝授权 1.0 相关接口////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////////
+
+
+/**
+ *  快登授权
+ *  @param authInfo         授权相关信息
+ *  @param completionBlock  授权结果回调,若在授权过程中,调用方应用被系统终止,则此block无效,
+                            需要调用方在appDelegate中调用processAuth_V2Result:standbyCallback:方法获取授权结果
+ */
+- (void)authWithInfo:(APayAuthInfo *)authInfo
+            callback:(CompletionBlock)completionBlock;
+
+/**
+ *  处理支付宝app授权后跳回商户app携带的授权结果Url
+ *
+ *  @param resultUrl        支付宝app返回的授权结果url
+ *  @param completionBlock  授权结果回调
+ */
+- (void)processAuthResult:(NSURL *)resultUrl
+          standbyCallback:(CompletionBlock)completionBlock;
+
+
+//////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////支付宝 h5 支付转 native 支付接口////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////////
+/**
+ *  从h5链接中获取订单串并支付接口(自版本15.4.0起,推荐使用该接口)
+ *
+ *  @param urlStr     拦截的 url string
+ *
+ *  @return YES为成功获取订单信息并发起支付流程;NO为无法获取订单信息,输入url是普通url
+ */
+- (BOOL)payInterceptorWithUrl:(NSString *)urlStr
+                   fromScheme:(NSString *)schemeStr
+                     callback:(CompletionBlock)completionBlock;
+
+
+
+//////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////支付宝 tid 相关信息获取接口/////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  获取当前tid相关信息
+ *
+ *  @return tid相关信息
+ */
+- (NSString*)queryTidFactor:(AlipayTidFactor)factor;
+
+
+
+//////////////////////////////////////////////////////////////////////////////////////////////
+//////////////////////////支付宝支付环境相关信息接口//////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////////////////////
+
+/**
+ *  是否已经使用过
+ *
+ *  @return YES为已经使用过,NO反之
+ */
+- (BOOL)isLogined;
+
+/**
+ *  获取当前版本号
+ *
+ *  @return 当前版本字符串
+ */
+- (NSString *)currentVersion;
+
+/**
+ *  測試所用,realse包无效
+ *
+ *  @param url  测试环境
+ */
+- (void)setUrl:(NSString *)url;
+
+/**
+ *  支付前主动更新本地配置
+ *
+ *  @param block 更新请求结果回调
+ */
+- (void)fetchSdkConfigWithBlock:(void(^)(BOOL success))block;
+@end