new_alipay 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/new_alipay/batch_trans.rb +3 -0
- data/lib/new_alipay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76e803de1088f5a3321df787853ba542af4b5bd9
|
4
|
+
data.tar.gz: f65f9514b92176b77b8ac4843d092777e1d61f43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f75c1e48f0f8576e370ced4e293c13d336d3761074b761cd1f322591b2dcb5fba386a15c6838d203b5fea228537ccd9c014aede5fab9f2f1ecdae70772c8bbc
|
7
|
+
data.tar.gz: 265c46c7cf64d3784e01431acec95e86e27c2087b803a242c3248acf9c09ad22620b29779339e0181329f86400254f19e2db9018a77906dbba3f0a67962b735a
|
@@ -34,6 +34,8 @@ module NewAlipay
|
|
34
34
|
"detail_data" => para_temp[:detail_data],
|
35
35
|
"_input_charset" => "utf-8"
|
36
36
|
}
|
37
|
+
parameters = parameters.merge({buyer_account_name: para_temp[:buyer_account_name]}) if para_temp[:buyer_account_name]
|
38
|
+
|
37
39
|
signing_str_array = parameters.inject([]) { |memo, (key, v)| memo << "#{key}=#{v}"; memo }
|
38
40
|
sorted_signing_str_array = signing_str_array.sort! { |m, n| m.to_s <=> n.to_s }
|
39
41
|
sign = Digest::MD5.hexdigest(sorted_signing_str_array.join('&')+NewAlipay.key)
|
@@ -59,6 +61,7 @@ module NewAlipay
|
|
59
61
|
"detail_data" => para_temp[:detail_data],
|
60
62
|
"_input_charset" => "utf-8"
|
61
63
|
}
|
64
|
+
parameters = parameters.merge({buyer_account_name: para_temp[:buyer_account_name]}) if para_temp[:buyer_account_name]
|
62
65
|
signing_str_array = parameters.inject([]) { |memo, (key, v)| memo << "#{key}=#{v}"; memo }
|
63
66
|
sorted_signing_str_array = signing_str_array.sort! { |m, n| m.to_s <=> n.to_s }
|
64
67
|
sign = Digest::MD5.hexdigest(sorted_signing_str_array.join('&')+NewAlipay.key)
|
data/lib/new_alipay/version.rb
CHANGED