Latest 0.0.1
Homepage https://github.com/HuanYi/XYMobilePay
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

简单支付封装

1、依赖的库:

    CFNetwork.framework
    SystemConfiguration.framework
    Security.framework
    QuartzCore.framework
    CoreTelephony.framework
    CoreMotion.framework
    libc++.tbd
    libz.tbd
    libsqlite3.0.tbd
    libstdc++.tbd

2、设置url Schemes

1.添加URL Schemes:在 Xcode 中,选择你的工程设置项,选中 "TARGETS" 一栏,在 "Info" 标签栏的 "URL Types" 添加 "URL Schemes",如果使用微信,务必填入所注册的微信应用程序id(例如:wx2345678),如果不使用微信,则自定义,允许英文字母和数字,首字母必须是英文字母,建议起名稍复杂一些,尽量避免与其他程序冲突。

2.添加 Other Linker Flags:在 Build Settings 搜索 Other Linker Flags ,添加 -ObjC

3、适配iOS 9及以上系统注意事项

1.使用了支付宝和微信渠道,需要在 Info.plist 里添加如下代码:

<key>LSApplicationQueriesSchemes</key>
<array>
<string>weixin</string>
<string>wechat</string>
<string>alipay</string>
<string>alipays</string>
</array>

2.iOS 9 及其以上系统限制了 http 协议的访问,如果需要访问 http://,在 Info.plist 添加如下代码:

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>

Latest podspec

{
    "name": "XYMobilePay",
    "version": "0.0.1",
    "summary": "u5faeu4fe1u3001u652fu4ed8u5b9du652fu4ed8u5c01u88c5",
    "description": "u79c1u6709Podsnu5faeu4fe1u3001u652fu4ed8u5b9du652fu4ed8u5c01u88c5",
    "homepage": "https://github.com/HuanYi/XYMobilePay",
    "license": "MIT",
    "authors": {
        "HuanYi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/HuanYi/XYMobilePay.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "XYPay/*",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This