Project

allpay

0.0
No commit activity in last 3 years
No release in over 3 years
Allpay vAccount API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0

Runtime

>= 2.3.6, ~> 2.3.6
~> 1.0
>= 2.4.0, ~> 2.4.0
 Project Readme

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

  1. Fork it ( https://github.com/odin1in/allpay/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request