This is a spree commerce (>2.4) payment gateway.
** this gem is not for production use**
It uses the https://github.com/chloerei/alipay gem This gem allows for internation payments (EUR…)
** The checkout integration is currently in progress an will change **
- Add this extension to your Gemfile with this line:
gem 'spree_alipay_forex_trade', github: 'formrausch/spree_alipay_forex_trade'
- Install the gem using Bundler:
bundle install
3 Copy & run migrations
bundle exec rails g spree_alipay_forex_trade:install
- Restart your server
If your server was running, restart it so that it can process properly.
- Use it as a normal Spree:Gateway
** Forex trade does autocapture. If you have to show a confirm page to the user before you redirect to Alipay you have to use /alipay/passthrough_forex_trade
Add the AlipayXXX _(e.g. AlipayPartnerTrade) in Spree backend like normal payment. You need to input the _pid, _key, and _senderemail
- Use it as a alipay button
** Notice that Refund flow is not implemented yet **
- Supports Alipay ForexTrade thanks to https://github.com/chloerei/alipay
- Bug report or pull request are welcome.
- Make a pull request
Fork it
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin my-new-feature)
Create new Pull Request
Please write unit test with your code if necessary.