Alipay, Tenpay and more chinese billing integration for Spree
for alipay, only support 双功能收款 和 即时到账收款, 担保交易收款。
- 2-0-stable http://spree-alipay-sample.herokuapp.com
- 2-2-stable http://spree-alipay-sample-220.herokuapp.com
-
Add the following to your applications Gemfile
gem 'spree_alipay', :github => "RuanShan/spree_alipay", :branch=>"2-0-stable"(or you perferred branch) gem 'activemerchant_patch_for_china', github:'RuanShan/activemerchant_patch_for_china', branch:'for_offsite_payments'
-
Run bundler
bundle install
-
Copy and execute migrations:
rails g spree_alipay:install
rake railties:install:migrations #if you upgraded spree, run this command
rake db:migrate
offsite_payments activemerchant_patch_for_china
For Alipay 担保交易收款 "Escrow Account", use Spree::Gateway::AlipayEscrow this will redirect you to https://tradeexprod.alipay.com/cooperate/createPartnerTradeByBuyer.htm
For Alipay 双功能收款 和 即时到账收, use Spree::Gateway::AlipayDualfun, this will redirect you to https://tradeexprod.alipay.com/cooperate/createTradeByBuyer.htm
#create dummy to test bundle exec rake test_app
cd spec/dummy rake db:reset rake spree_sample:load
支付宝常见问题目录与索引——有助于您的问题能够快速解决
http://club.alipay.com/read.php?tid=8681712&fid=703#url_6
https://github.com/Shopify/active_merchant/wiki/Contributing