raymondchou / rwepay Goto Github PK
View Code? Open in Web Editor NEW微信支付 Wechat Pay Ruby SDK Gem
License: MIT License
微信支付 Wechat Pay Ruby SDK Gem
License: MIT License
不知道是什么原因,我用的ruby是1.8.7,不知道是不是不支持?
Raymond你好,感谢提供了ruby下的weixin pay 的sdk。在我的使用中遇到几个问题,请问是否可以和您讨论一下。
微信接口中定义,请求中的字符串无需做额外的转义工作。
我的环境为rails 4.0,默认编码为utf-8.因为订单查询接口中包含&字符,在to_json后会被默认转义成\u0026再在发送至weixin平台,而从将会导致weixin端校验不通过。
解决办法重置to_json在utf8的这步操作,不知道其他用户是否有同样的问题,是否需要提交PR解决。
谢谢!
RT
文档里面没说SHA1方式,可能本人愚钝,没有成功实现支付
错误提示为:
get_brand_wcpay_request:cancel
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.