activemerchant_patch_for_china
activemerchant_patch_for_china copied to clipboard
Alipay::Notification 解析参数时,没有用CGI.unescape解码, 导致日期参数丢失时间部分
ActiveMerchant::Billing::Integrations::Alipay::Notification # Take the posted data and move the relevant data into a hash def parse(post) @raw = post for line in post.split('&') key, value = line.scan( %r{^(\w+)=(.)$} ).flatten params[key] = value end end
应该改为跟 activemerchant的Notification一样。 *params[key] = CGI.unescape(value || '') *
对比过 activemerchant 的Notification.parse 发现其实Alipay::Notification.parse 完全可以删除掉。
请fork,然后提交一个pull request给我吧