3 Star 7 Fork 0

kaka / kuaiqian

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 948 Bytes
一键复制 编辑 原始数据 按行查看 历史
kaka 提交于 2018-03-05 10:45 . 更新 README.md

Kuaiqian Travis

99bill快钱支付

Installation

Add this line to your applications Gemfile:

gem 'kuaiqian', :github => "huxinghai1988/kuaiqian"

And then execute:

$ bundle

Usage

config.yml配置:

#rsa加密
remote: https://www.99bill.com/gateway/recvMerchantInfoAction.htm
rsa:
  pem_path: 99bill-rsa.pem
  password: 123456
  cer_path: 99bill-rsa.cer

params:
  merchant_acct_id: 1002301545701
  version: v2.0
  language: 1
  sign_type: 4

#md5加密, 替换rsa与修改sign_type参数

md5:
  key: XZDE46UKTFJ6TPQT

params:
  sign_type: 1

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Ruby
1
https://gitee.com/huxinghai1988/kuaiqian.git
git@gitee.com:huxinghai1988/kuaiqian.git
huxinghai1988
kuaiqian
kuaiqian
master

搜索帮助