new_alipay 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43d6e790619b32767ffbdf1df8fc8b7da94112f0
4
- data.tar.gz: 68d7a8223d1a755e65229d0e430282e3d6cf481b
3
+ metadata.gz: ce59ea0f8783024b53fc99e72c4d177811451569
4
+ data.tar.gz: e521b26ad9c4c64243a3d1b452b94259a15384ea
5
5
  SHA512:
6
- metadata.gz: 075f0bd402554a648462ba5cb5bc2b32d996832787f6e444d51baea6340b7b5c133da5d99586a3fc1102c2b09dea8bacccf6f2292712e1d89caa776ddd4b7460
7
- data.tar.gz: 6bd44ec685548e3be1f4aa5d8a0da5b82495b46daa6563817bc27a5a59c6d0df152400df0a4380cf3724af1102837182c69096597c074ada3dc7cb0315698320
6
+ metadata.gz: 47c05b04f92ae3c58c3fa14fe5935eefc307fd1abdf1cba75a254b1fe8cb0acf98494bd30d6a4d0e35466e38b70e306456452b9221bbf4066ff378da97f880f2
7
+ data.tar.gz: 3e41ba035734090916c796aee90fe215f80667c36aff107ff42aa06214156efae1ccd25f5d4bace2bfcaca80e30bad5a507893cd3f01493058ad0c8ab0d6c864
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- new_alipay (0.1.7)
4
+ new_alipay (0.1.9)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
data/README.md CHANGED
@@ -95,10 +95,13 @@ NewAlipay.account_name='xxxx公司/你的真实姓名'
95
95
  batch_fee: 0.01,
96
96
  batch_num: 1,
97
97
  detail_data: "#{NewAlipay::BatchTrans.random_trade_no(26)}^152xxxxyyyy^某某^0.01^测试支付"
98
-
99
- })
98
+ }) do |hash|
99
+ puts hash #=>submit的所有参数
100
+ end
101
+
100
102
  ```
101
103
  ####验证付款结果
104
+
102
105
  ```ruby
103
106
  request_result = NewAlipay::BatchTrans.verify_notify?({
104
107
  _input_charset: 'utf-8',
@@ -40,6 +40,8 @@ module NewAlipay
40
40
 
41
41
  sorted_signing_str_array << "sign=#{sign}" << 'sign_type=MD5'
42
42
 
43
+ yield parameters.symbolize_keys.merge({:sign => sign, :sign_type => 'MD5'}) if block_given?
44
+
43
45
  "#{ALIPAY_GATEWAY_NEW}#{sorted_signing_str_array.join('&')}"
44
46
  end
45
47
 
@@ -1,3 +1,3 @@
1
1
  module NewAlipay
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: new_alipay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-10 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler