Code Monkey home page Code Monkey logo

Comments (11)

charleyw avatar charleyw commented on August 17, 2024

我猜你直接拷贝的 README里面的pay的示例吧。我那个里面回掉函数的参数名字写错了。。。

from cordova-plugin-alipay.

charleyw avatar charleyw commented on August 17, 2024

用这个

window.alipay.pay({
    tradeNo: new Date().getTime(),
    subject: "测试标题",
    body: "我是测试内容",
    price: 0.02,
    notifyUrl: "http://your.server.notify.url"
}, function(successResults){alert(successResults)}, function(errorResults){alert(errorResults)});

from cordova-plugin-alipay.

dennyliua avatar dennyliua commented on August 17, 2024

哦,使用的是对的,我遍历了下 返回错误,是 6001 ,只显示了 正在跳转支付宝,然后就提示交易订单处理失败,请稍后再试,我看看是不是支付宝哪里没有权限。有问题我再咨询您,谢谢啦

from cordova-plugin-alipay.

nuying117 avatar nuying117 commented on August 17, 2024

我也遇到了同样的问题,每次都返回
Object {resultStatus: "6001", result: "", memo: "操作已经取消。"}

from cordova-plugin-alipay.

zhougonglai avatar zhougonglai commented on August 17, 2024

同上

from cordova-plugin-alipay.

charleyw avatar charleyw commented on August 17, 2024

因为到这里,插件基本应该是尝试去调支付宝了,说明插件的事情基本完了。
我建议去检查一下支付宝的配置,公钥私钥,支付宝后端配置等。

建议去下载支付宝官方的例子,把配置改成自己的,测试一下看能支付不,这样可以确认是不是支付宝配置不正确。

from cordova-plugin-alipay.

zhougonglai avatar zhougonglai commented on August 17, 2024

老师果然说的是!谢谢大神提供的plugin

from cordova-plugin-alipay.

likunNet avatar likunNet commented on August 17, 2024

下载的你的压缩包,cordova本地安装时命令行填的参数,而且我在android.json,和xml\config.xml等文件下查看对比过,是一致的

from cordova-plugin-alipay.

likunNet avatar likunNet commented on August 17, 2024

@charleyw ,下载的你的压缩包,cordova本地安装时命令行填的参数,而且我在android.json,和xml\config.xml等文件下查看对比过,是一致的,我现在也是AL164的问题

from cordova-plugin-alipay.

cxpyear avatar cxpyear commented on August 17, 2024

请教一下 我打包成apk安装在手机上提示‘交易订单处理失败,请稍后重试’,没有调起来支付宝,但是我在安卓模拟器上是调起了支付宝,这是为啥啊

from cordova-plugin-alipay.

cxpyear avatar cxpyear commented on August 17, 2024

@charleyw 麻烦有空回答下啊 谢谢

from cordova-plugin-alipay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.