Allpay
A Gem for the Allpay.
Installation
Add this line to your application's Gemfile:
gem 'allpay'
And then execute:
$ bundle
Or install it yourself as:
$ gem install allpay
Quick Start
Initialize
vAccount
allpay = Allpay::Client.new(merchant_id: "YOUR MERCHANT ID", key: 'YOUR KEY For Vaccount', iv: 'YOUR IV For Vaccount')
All in one Not Yet
Usage
vAccount
allpay.get_vaccount(trade_amount: 1000, reply_url: "YOUR Callback URL")
we also support options below:
* are required
merchant_trade_no -- Default is random 20 digits
merchant_trade_date -- Defalt is current time
trade_amount -- Default is 10000
expire_date -- Default is 7
bank_name -- Default is CHINATRUST
*reply_url -- Default is empty
remark -- Default is empty
Contributing
- Fork it ( https://github.com/odin1in/allpay/fork )
- 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 a new Pull Request