froger-me / woo-wechatpay Goto Github PK
View Code? Open in Web Editor NEWWeChat Payment gateway for WooCommerce
License: GNU General Public License v3.0
WeChat Payment gateway for WooCommerce
License: GNU General Public License v3.0
wordpress版本5.7.2
安装最新的Payment gateway for WooCommerce - Woo WeChatPay 1.3.15版本
在WooCommerce 设置--支付选项中, 没有微信的支付方式显示。
Investigate the following feedback:
bug:当微信内添加产品到购物车,然后付费下单,第一次可以跳转到微信付款。
但,某种情况下,用户犹豫或其它原因没有造成完成付款,进入我的账户,查看订单,再次选择微信付款时,出现空白。
Bug: When WeChat adds a product to a shopping cart, and then pays for it, the first time you can jump to WeChat for payment.
But, in some cases, the user hesitates or other reasons does not cause the payment to be completed, enters my account, checks the order, and selects WeChat again when the payment appears blank.
首先非常感谢您开发的插件,你所开发的插件让我可以废除原来很多商业购买的插件(还是你开发的比较好用,可扩展性比较强)。
但是在这几天的配置中,我发现一个很奇怪的问题,我解决了三天都没有办法解决。
问题描述:
通过woocommerce产品中直接下单后微信付款出现错误:
当前页面的URL未注册:https://www.kunshanfa.com/checkout
打开Woocommerce中的订单,再点击付款就成功。
我发现这二个地方的调用地址是不同的,但是在微信支付官方配置都正确的情况下,到底是什么地方出了问题我现在没法找到:
直接下单的付款地址:https://www.kunshanfa.cn/checkout
在我的订单中打开的付款地址:https://www.kunshanfa.cn/checkout/order-pay/113?pay_for_order=true&key=wc_order_XbrHHYVFO2nXO
我想有可能在设置JSAPI支付授权目录中,你的帮助文件中说配置成:https://www.kunshanfa.cn/checkout,注意,最后是没有/这个符号的,但是官方微信支付设置里这个地址最后必须要以/结尾。
This is already solved, but thought I would post here to make it easier for anyone else trying to solve this problem. I am using PolyLang with Hyyan WooCommerce Polylang Integration. For whatever reason, this combination moves the QR Code image to a language specific location but does not update the address used by Woo WeChat. As it seems to only be a single image causing the problem, I used a permanent redirect to solve. Seems to work fine and will hopefully survive future updates.
Redirect permanent /wc-api/WC_WechatPay/ /zh/wc-api/WC_WechatPay/
The actual language you choose doesn't seem to matter as the QR code doesn't have any text associated anyway.
@froger-me Sorry to keep pestering you with questions. We have the WeChat login and force follow working without issue, but can't seem to get payments working in the WeChatPay plugin. We are getting the following signature error each time a payment is attempted.
Please scan the QR code with WeChat to finish the payment.
Error generating the payment QR code. If the problem persists, please contact our services.
The order has failed. Reason: 签名错误
The certificate files are in an accessible directory and all other settings, to the bets of my knowledge, filled in with the appropriate details from the WeChat merchant backend.
Any thoughts on where I may be missing a step?
您好,在微信中打开网页点击付款,显示
用户在微信浏览器中进行了身份验证,但无法找到openid
而在电脑、手机浏览器里面都可以完成付款。
After activated, can not find WeChat Pay on the list of WooCommerce > Settings > Payments >
Thus no way to configure this gateway.
Is this a compatible problem?
Wordpress 5.2.2
WooCommerce 3.6.5
if A has an order, B scan qrcode to pay
in function send_templated_message()
$openid = $payment_result['openid'];
so B get the msg and order info
通过配置微信WeChat Order Notification Template ID可以让用户收到订单通知,这个功能很强大很好用。
可能否实现在用户点击这个通知时直接跳转到订单详细页,更在好像只能到达订单清单页。
我不清楚是我配置问题还是插件本身就是这样实现的。
Hi, I have configured the plugin and it generated a QR code. Unfortunately, I'm not sure how to test it without paying actual real money. Is there some way we can test WeChat pay like how we have Stripe / PayPal sandbox?
Hi Alexandre,
I just updated both WP Weixin, Woo WeChat Pay plug-ins to latest version 1.3.5.
Step 1: they were both deactivated.
Step 2: FTP deleted both plug-in folders (WordPress site is not accessible from China host...)
Step 3: FTP uploaded both version 1.3.5 plug-in folders
Step 4: activated both plug-ins
However, H5 payment in both mobile Safari / mobile Chrome browsers is still not working (showing a payment bar code instead of calling WeChat App to make payment).
The WeChat Pay Merchant Account has enabled H5 payment feature at account level. Has the right domain authorization within WeChat Pay.
A sample product (virtual product) is this:
https://www.elegment.cn/product/book/
Do you know what is the reasoning? I have attached screen captures below.
Thanks in advance.
Woocommerce version :4.3.1
In Woocommerce > Settings > Payments... the payment gateway does not show so their is no wan to configure it.
Error generating the payment code when Redis Object Cache is active.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.