Skip to content

esperyong/spree_alipay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spree_alipay

Alipay, Tenpay and more chinese billing integration for Spree

for alipay, only support 双功能收款 和 即时到账收款, 担保交易收款。

Sample

  1. 2-0-stable http://spree-alipay-sample.herokuapp.com
  2. 2-2-stable http://spree-alipay-sample-220.herokuapp.com

Installation

  1. 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'

  2. Run bundler

    bundle install

  3. Copy and execute migrations:

rails g spree_alipay:install

rake railties:install:migrations #if you upgraded spree, run this command

rake db:migrate

dependency

offsite_payments activemerchant_patch_for_china

Notes

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

Testing

#create dummy to test bundle exec rake test_app

manual test

load spree_sample and add your alipay paymethod account manually.

cd spec/dummy rake db:reset rake spree_sample:load

Reference

支付宝常见问题目录与索引——有助于您的问题能够快速解决

http://club.alipay.com/read.php?tid=8681712&fid=703#url_6

https://github.com/Shopify/active_merchant/wiki/Contributing

About

Alipay, Tenpay for Spree

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 93.7%
  • HTML 6.2%
  • Other 0.1%