AlipaySDK, 3.0.1, iOS, Swift 2, Xcode 7
- Copy
AlipaySDK.framework
,AlipaySDK.bundle
,libssl.a
,libcrypto.a
to theFrameworks
group of your project. - Copy the
Util
andopenssl
folder into your project's folder and load all the files into the project. - Copy
Order.h
,Order.m
,APAuthV2Info.h
,APAuthV2Info.m
to the project - Import the
Order.h
,<AlipaySDK/AlipaySDK.h>
,DataSigner.h
in the bridging-header file
- add
#import <Foundation/Foundation.h>
the files showing some errors likeNSString
, eg.Util/Base64.h
Util/openssl_wrapper.h
- disable bitcode in the build setting if error occurs for the libcrypto.a not supporting
openssl/asn1.h
file not found, add$SRCROOT recursive
in the Header Search Paths in Build SettingsCFNetwork SSLHandshake failed (-9824)
,NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
,[memo: Error Domain=系统繁忙,请稍后再试 Code=1000 "(null)", result: , resultStatus: 4000]
, ALI69 网络繁忙,请稍后重试 enableAllow Arbitrary Loads
underApp Transport Security Settings
to allow AlipaySDK doing everything it likes(When the fuck will Alipay support https TLS 1.2?)- ALI69 商户未开通支付宝服务 用户暂未签约?