README.md in new_alipay-0.1.6 vs README.md in new_alipay-0.1.7
- old
+ new
@@ -1,13 +1,20 @@
# NewAlipay
支付宝快捷支付+支付宝批量付款
+## Status
+代码 已经打包发布到 RubyGems.
+
+[![image](https://ruby-china-files.b0.upaiyun.com/photo/5982eaaa64f467d9dbda03ad4f40ea27.png)](https://rubygems.org/gems/new_alipay)
+
+
## Installation
Add this line to your application's Gemfile:
+
```ruby
gem 'new_alipay'
```
And then execute:
@@ -85,10 +92,10 @@
request_url = NewAlipay::BatchTrans.submit({
notify_url: 'http://test.yourserver.com/callback',
batch_fee: 0.01,
batch_num: 1,
- detail_data: "#{Time.new.strftime('%Y%m%d')+18.times.inject('') { |acc, i| acc+=('0'..'9').to_a[(i+Random.rand(1000))%10]; acc }}^152xxxxyyyy^某某^0.01^测试支付"
+ detail_data: "#{NewAlipay::BatchTrans.random_trade_no(26)}^152xxxxyyyy^某某^0.01^测试支付"
})
```
####验证付款结果
```ruby