GuoDapeng / cordova-plugin-alipay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cordova-plugin-alipay

支付宝 APP 支付插件

cordova plugin add

cordova plugin rm cordova-plugin-alipay

iOS 使用前

修改 src/ios/AliPayPlugin.m 文件的 - (void)pay:(CDVInvokedUrlCommand*)commandNSString *appScheme = @"com.your.package"; 的值。修改为你自己的 URL Types 设置的值。

调用方法

function test() {
    console.log('test');
    window.aliPay.pay(
        {
            order  : "签名好的,准备发送给 SDK 的订单信息",
        },
        function (successResults) {
            alert(successResults);
            console.log(successResults);
        }, function (errorResults) {
            alert(errorResults);
            console.log(errorResults);
        }
    );
}

About

License:Apache License 2.0


Languages

Language:Objective-C 75.8%Language:Java 20.2%Language:JavaScript 4.0%