Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

显示正在跳转支付宝,然后就提示交易订单处理失败,请稍后再试。(AL164) #30

Open
dennyliua opened this issue May 2, 2016 · 11 comments

Comments

@dennyliua
Copy link

android 的 日志。大神求解
THREAD WARNING: exec() call to AliPay.pay blocked the main thread for 21ms. Plugin should use CordovaInterface.getThreadPool().
05-02 15:17:20.784 30900-30923/com.aa.starter I/Timeline: Timeline: Activity_launch_request id:com.eg.android.AlipayGphone time:59828416
05-02 15:17:21.174 30900-30900/com.aa.starter W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
05-02 15:17:23.424 30900-30900/com.aa.starter I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@2b2ccdf0 time:59831052
05-02 15:17:23.484 30900-31284/com.aa.starter E/ContextImpl: IllegalArgumentException unbindService: com.alipay.sdk.util.i@280f8ca
05-02 15:17:23.504 30900-30900/com.aa.starter I/chromium: [INFO:CONSOLE(312)] "Error in Error callbackId: AliPay1040165311 : ReferenceError: results is not defined", source: file:///android_asset/www/cordova.js (312)

@charleyw
Copy link
Owner

charleyw commented May 3, 2016

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

@charleyw
Copy link
Owner

charleyw commented May 3, 2016

用这个

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)});

@dennyliua
Copy link
Author

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

@nuying117
Copy link

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

@zhougonglai
Copy link

同上

@charleyw
Copy link
Owner

charleyw commented Sep 6, 2016

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

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

@zhougonglai
Copy link

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

@likunNet
Copy link

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

@likunNet
Copy link

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

@cxpyear
Copy link

cxpyear commented Oct 11, 2016

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

@cxpyear
Copy link

cxpyear commented Oct 11, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants