【文件属性】:
文件名称:spree_wechat_pay:Spree Commerce 新增微信支付支付方式
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-02 07:58:01
Ruby
狂欢微信支付
介绍到这里。
安装
将 spree_wechat_pay 添加到您的 Gemfile:
gem 'spree_wechat_pay'
捆绑您的依赖项并运行安装生成器:
bundle
bundle exec rails g spree_wechat_pay:install
使用以下行将此扩展名添加到您的 spree.rb 中:
Rails . application . config . spree . payment_methods << Spree :: Gateway :: WechatPay
微信服务器会为你发布xml数据,也许你需要这个:
gem 'actionpack-xml_parser'
并在主项目中的“config/application.rb”中添加下一行:
config.middleware.insert_after Action
【文件预览】:
spree_wechat_pay-master
----bin()
--------rails(307B)
----config()
--------locales()
--------routes.rb(300B)
----db()
--------migrate()
----Rakefile(444B)
----LICENSE(1KB)
----app()
--------models()
--------assets()
--------controllers()
--------views()
----Gemfile(259B)
----spree_wechat_pay.gemspec(1KB)
----.rspec(7B)
----spec()
--------spec_helper.rb(3KB)
----.gitignore(105B)
----lib()
--------spree_wechat_pay.rb(120B)
--------generators()
--------spree_wechat_pay()
----README.md(1KB)