Skip to content
This repository

A rails plugin to add an active_merchant patch for china online payment platform including alipay (支付宝), 99bill (快钱) and tenpay (财付通)

branch: master
Octocat-spinner-32 lib Bumping version to 0.2.1 March 31, 2014
Octocat-spinner-32 test first commit September 27, 2009
Octocat-spinner-32 .gitignore fix typo March 09, 2013
Octocat-spinner-32 Gemfile fix typo March 09, 2013
Octocat-spinner-32 MIT-LICENSE use bundler March 08, 2013
Octocat-spinner-32 README.textile Update README.textile October 19, 2012
Octocat-spinner-32 Rakefile use bundler March 08, 2013
Octocat-spinner-32 activemerchant_patch_for_china.gemspec fix typo March 09, 2013
Octocat-spinner-32 init.rb move init.rb to root October 11, 2010
README.textile

activemerchant_patch_for_china

This plugin is an active_merchant patch for china online payment platform, now it supports alipay (支付宝), 99bill (快钱), tenpay (财付通), 19pay(捷迅支付) and yeepay(易宝).


Donate

Alipay
Pledgie


Install

install active_merchant and activemerchant_patch_for_china as plugins:


script/plugin install git://github.com/Shopify/active_merchant.git
script/plugin install git://github.com/flyerhzm/activemerchant_patch_for_china.git

install activemerchant and activemerchant_patch_for_china as gems:


gem install activemerchant
gem install activemerchant_patch_for_china

Configuration

if you install active_merchant and activemerchant_patch_for_china as rails plugins, then define plugin load order in config/environment.rb to promise activemerchant_patch_for_china is loaded after active_merchant.


config.plugins = [:all, :active_merchant, :activemerchant_patch_for_china]

if you install activemerchant and activemerchant_patch_for_china as gems, then define in config/environment.rb


config.gem "activemerchant", :lib => "active_merchant"
config.gem "activemerchant_patch_for_china", :lib => false


require 'active_merchant'
require 'active_merchant/billing/integrations/action_view_helper'

ActionView::Base.send(:include, ActiveMerchant::Billing::Integrations::ActionViewHelper)

Usage

Alipay


About

activemerchant_patch_for_china is inspired by masterwujiang’s patch


Copyright © 2009 – 2012 [Richard Huang], released under the MIT license

Something went wrong with that request. Please try again.