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

安装失败 #33

Open
312977 opened this issue May 30, 2016 · 4 comments
Open

安装失败 #33

312977 opened this issue May 30, 2016 · 4 comments

Comments

@312977
Copy link

312977 commented May 30, 2016

Checking connectivity... done.
'export' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
1.git clone https://github.com/charleyw/cordova-plugin-alipay.git && cd cordova-plugin-alipay && export c:\test=$(pwd) 执行的时候报的就是这个错 我不知道为什么

2.用你不用动配置文件的 安装 地址报这个错
Error: Failed to fetch plugin https://github.com/charleyw/cordova-plugin-alipay.git via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: C:\Program Files\Git\cmd\git.exe: Command failed with exit code 128 Error output:
Cloning into 'C:\Users\31297\AppData\Local\Temp\git\1464595923182'...
fatal: unable to access 'https://github.com/charleyw/cordova-plugin-alipay.git/': Unknown SSL protocol error in connection to github.com:443

我想知道为什么id和 支付宝帐号要在命令行里跟上 为什么不能配置到文件中呢

@312977
Copy link
Author

312977 commented May 30, 2016

系统提示pay方法没有定义。 我自动安装的那种装好了 多请求几次就装好了
但是现在提示pey没有定义 请问为什么呢

@charleyw
Copy link
Owner

你先确认一下你的cordova工程可以正常执行。如果说pay没定义的话,很大的可能性是,你的cordova工程没有正确初始化,比如说index.html没有引 cordova.js,或者在cordova初始化完成之前,你就调用了这个命令。首先确认一下你的cordova app打开之后正确初始化了。

@312977
Copy link
Author

312977 commented Jun 1, 2016

我没注意 现在引入了 app功能都正常 机器上也安装了支付宝,其他程序都能正确打开支付宝,
$scope.zhifu = function () {
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);
});
}
alert(errorResults); 我打断点 他走到这里 直接弹出 null ,请问是什么情况

@likunNet
Copy link

我也是一样的问题,windows.alipay是个空对象,请问你解决了吗?我cordova调用其他插件是OK的

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

3 participants