Latest 0.0.3
Homepage https://github.com/duanruiying/DryAlipay
License MIT
Platforms ios 10.0, requires ARC
Dependencies AlipaySDK-iOS
Frameworks UIKit, Foundation, CoreMotion, CFNetwork, CoreGraphics, CoreText, QuartzCore, CoreTelephony, SystemConfiguration
Authors

iOS: 简化支付宝支付

官网

Prerequisites

  • Xcode 10.2.1
  • iOS 10.0 or later
  • ObjC、Swift 5 or later

Installation

  • pod ‘DryAlipay’
  • 为URL Types 添加回调scheme(identifier:"alipay"、URL Schemes:"ap+AppID")
  • info.plist文件属性LSApplicationQueriesSchemes中增加alipay字段
  • 消除警告
    Build Settings -> Build Options -> Debug Information Format
    Debug 模式下设置成 DWARF
    Release 模式下设置成 DWARF with dSYM File

Features

  1. 处理支付宝通过URL启动App时传递的数据(必须调用,否则支付宝支付成功后无回调)

    - (BOOL)application:(UIApplication *)app openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
    
    /// 在app被杀模式下,通过这个方法获取支付结果
    [DryAlipay handleOpenURL:url completion:^(DryAlipayCode code) {
    
    }];
    
    return YES;
    }
  2. 原生应用发起支付
    
    [DryAlipay payWithScheme:"" oder:"" completion:^(DryAlipayCode code) {

}];

3. 从h5链接中获取订单串并支付接口

[DryAlipay payWithScheme:"" oder:"" completion:^(DryAlipayCode code) {

}];

Latest podspec

{
    "name": "DryAlipay",
    "version": "0.0.3",
    "summary": "DryAlipay",
    "homepage": "https://github.com/duanruiying/DryAlipay",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "duanruiying": "[email protected]"
    },
    "source": {
        "git": "https://github.com/duanruiying/DryAlipay.git",
        "tag": "0.0.3"
    },
    "description": "TODO: iOSu7b80u5316u652fu4ed8u5b9du652fu4ed8.",
    "platforms": {
        "ios": "10.0"
    },
    "requires_arc": true,
    "user_target_xcconfig": {
        "OTHER_LDFLAGS": [
            "-w"
        ]
    },
    "static_framework": true,
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": [
            "-w"
        ]
    },
    "source_files": "DryAlipay/Classes/Code/**/*",
    "public_header_files": "DryAlipay/Classes/Code/Public/**/*.h",
    "libraries": [
        "z",
        "c++"
    ],
    "frameworks": [
        "UIKit",
        "Foundation",
        "CoreMotion",
        "CFNetwork",
        "CoreGraphics",
        "CoreText",
        "QuartzCore",
        "CoreTelephony",
        "SystemConfiguration"
    ],
    "dependencies": {
        "AlipaySDK-iOS": []
    }
}

Pin It on Pinterest

Share This