README.md in new_alipay-0.1.5 vs README.md in new_alipay-0.1.6

- old
+ new

@@ -89,9 +89,27 @@ 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^测试支付" }) ``` +####验证付款结果 +```ruby +request_result = NewAlipay::BatchTrans.verify_notify?({ + _input_charset: 'utf-8', + batch_fee: 0.01, + account_name: 'xxxx公司', + partner: '208890xxxxyyyy', + batch_no: '20160331xxxxxx', + sign: 'bc98542c95d33b08752qweq2a1ce162c8d', + detail_data: '201603316694019891235827213^152xxxxyyyy^xxxx^0.01^测试支付&email=yyyyxxx@qq.com&notify_url=http://test.yourserver.com/', + pay_date: '2016-03-31', + batch_num: 1, + service: 'batch_trans_notify', + sign_type: 'MD5' + }) +puts request_result +#=>true +``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.