itconsultis / commerce_wechatpay

Wechat pay integration for Drupal Commerce.
https://www.drupal.org/project/commerce_wechatpay
GNU General Public License v2.0
14 stars 9 forks source link

Overtrue更新了,wechatpay在drupal内无法正常启用 #6

Open pakoneko opened 7 years ago

pakoneko commented 7 years ago

根据文档运行git命令并改名 安装最新版本的overtrue,drupal启用wechat pay 显示 Commerce wechatpay is not well-installed: Missing library "overtrue_wechat". 最新master版本的overtrue 的src下没有Wechat这个文件夹,请注意

pakoneko commented 7 years ago

issue issue2

kroawen commented 7 years ago

一样的,求解答

pakoneko commented 7 years ago

后来自己解决了 (2个月前),好像是overtrue滚回使用一个旧版本,然后做了一些代码的修改(路径相关) qq 20161128234911

ranqiangjun commented 7 years ago

我看了下代码,发现是 autoload 的问题,现在的 overtrue/wechat 没有包含 autoload.php 文件。需要运行 composer install 。我将提交一个 PR。

pakoneko commented 7 years ago

非常感谢

tguillemaud commented 7 years ago

Hello guys,

Sorry we missed this issue.

@oirad will have a look to this one tomorrow.

Thanks

caifagithub commented 7 years ago

Waiting for updates, thank you guys!

tguillemaud commented 7 years ago

Hello Caifag,

As confirmed by email, we are working on it. Our schedule is already full and we are trying to make room for it. We will update asap.

Thanks for your patience.

freedomgao commented 7 years ago

你好,@showermj,这个模块无法兼容overtrue/wechat 3.0 版本,因为改动太大,使用overtrue/wechat版本小于3.0可以解决这些问题。

caifagithub commented 7 years ago

@freedomgao 请问一下,使用2.1.41overtrue的话还需要改什么代码吗?

freedomgao commented 7 years ago

@caifagithub 不需要,后台配置好就行了。

caifagithub commented 7 years ago

@freedomgao 我用旧版overtrue还是出来了这个问题: Commerce wechatpay is not well-installed: Missing library "overtrue_wechat". For more information please see your status report. 是不是还要改什么代码?请问到底怎么运行这个模块?

freedomgao commented 7 years ago

@caifagithub 可不可以把你的overtrue目录及文件截个图看看?

caifagithub commented 7 years ago
screen shot 2016-12-23 at 4 17 37 pm screen shot 2016-12-23 at 4 15 22 pm
freedomgao commented 7 years ago

@caifagithub 文件是正确的,检查一下commerce_wechatpay/commerce_wechatpay.module中commerce_wechatpay_init方法是否有改动,在这里引用libraries.

caifagithub commented 7 years ago

@freedomgao Overtrue\Wechat\Payment\Exception: [Wechat]FAIL: appid不存在 in Overtrue\Wechat\Payment\UnifiedOrder->getResponse() (line 205 of /home/admin/web/site.cn/public_html/sites/all/libraries/overtrue_wechat/src/Wechat/Payment/UnifiedOrder.php).

Could you help us to look at this problem?

caifagithub commented 7 years ago

overtrue lib 链接好了

freedomgao commented 7 years ago

@caifagithub 后台信息不对,appid需要的是公众平台的信息。