README.md in ll_pay-0.1.0 vs README.md in ll_pay-0.2.0

- old
+ new

@@ -1,6 +1,7 @@ -# LlPay +LlPay [![Gem Version][version-badge]][rubygems] [![Build Status][travis-badge]][travis] [![Code Climate][codeclimate-badge]][codeclimate] [![Code Coverage][codecoverage-badge]][codecoverage] +======= Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ll_pay`. To experiment with that code, run `bin/console` for an interactive prompt. TODO: Delete this and the text above, and describe your gem @@ -20,10 +21,19 @@ $ gem install ll_pay ## Usage -TODO: Write usage instructions here +### Config + +Create `config/initializers/ll_pay.rb` and put following configurations into it. + +```ruby + +LlPay.oid_partner = "oid_partner" # lianlian pay 商户编号 +LlPay.rsa_pri_key = "rsa_pri_key" # 商户RSA密钥 +LlPay.md5_key = "md5_key" # 商户 MD5 +``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.