TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2017 |
Maintained by Sam.
PayPlusSDK是由金麦众合提供的聚合支付解决方案,PayPlusSDK大大的降低了开发者对各家SDK集成的难度,大大提升了用户的开发效率,让开发者将自己的精力聚焦在业务开发上面。
iOS7&iOS7+
(1)确保自己在didFinishLaunchingWithOptions方法里面有注册微信SDK的代码
[WXApi registerApp:"Your weixin appid."]; //切记参数AppId是自己在微信支付开放平台获取的
(2)确保自己的build settings 设置了 -ObjC -all_load 标志位
(3)确保自己是设置了LSApplicationQueriesSchemes
<string>weixin</string>
<string>wechat</string>
(1)确保自己的build settings 设置了 -ObjC -all_load 标志位
(2)确保自己是设置了LSApplicationQueriesSchemes
<string>alipay</string>
<string>alipays</string>
(1)确保自己工程设置的"info"->"URL Type"包含一项:
identifier : weixin
URL Scheme : wxXXXXXXXXXXXXXX(这个必须是你从微信支付开放平台获取的,和 [WXApi registerApp:"Your weixin appid."]里面的参数是一致
注意: URL Scheme可以设置多个,不需要覆盖您当前的设置。
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
请到 Xcode 项目的 Build Settings 标签页搜索 bitcode,将 Enable Bitcode 设置为 NO。
(1)如果您当前只使用了微信支付功能,那么只需要在您的podfile中配置该渠道的
pod 'PayPlusSDK', '~> 1.0.9'
pod 'PayPlusSDK/Wxpay’, '~> 1.0.9'
(2)如果您当前同时使用了微信和支付宝的支付功能,那么需要在您的podfile中同时配置pod 'PayPlusSDK', '~> 1.0.9'
pod 'PayPlusSDK', '~> 1.0.9'
pod 'PayPlusSDK/Alipay’, '~> 1.0.9'
pod 'PayPlusSDK/Wxpay’, '~> 1.0.9'
(1)在您的AppDelegate类的openurl方法中写app非正常退出的回调代码
(2)在您的业务代码类中写支付正常返回后的回调代码,在demo中有具体说明