charleyw / cordova-plugin-alipay

Cordova支付宝插件,cordova alipay plugin
176 stars 75 forks source link

安装失败 #33

Open 312977 opened 8 years ago

312977 commented 8 years ago

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 commented 8 years ago

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

charleyw commented 8 years ago

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

312977 commented 8 years ago

我没注意 现在引入了 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 commented 8 years ago

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