wx_pay 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wx_pay/service.rb +4 -3
- data/lib/wx_pay/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea8c2a2950264c3ef20b181aecd5dd1b03a1b514
|
4
|
+
data.tar.gz: 983a59f2c04e8bed5d7747b8f17b8f143935b320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1b20a71134dcaa5a96a9fd9a7f165af93bee435dbbdc3dce25393b36b9669076650a1ca0519b69cde4c51428293991ef92c9663f84e13e44172471143e30215
|
7
|
+
data.tar.gz: 7bac70017ebe7a3117e51285addc63c42d0eb023fbd301606985a0a296dbe12f53b9235229fba604139b73e14fec3354a1b9174915521ceea2c19c2e65530925
|
data/lib/wx_pay/service.rb
CHANGED
@@ -42,7 +42,7 @@ module WxPay
|
|
42
42
|
|
43
43
|
r
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
INVOKE_CLOSEORDER_REQUIRED_FIELDS = [:out_trade_no]
|
47
47
|
def self.invoke_closeorder(params, options = {})
|
48
48
|
params = {
|
@@ -50,7 +50,7 @@ module WxPay
|
|
50
50
|
mch_id: options.delete(:mch_id) || WxPay.mch_id,
|
51
51
|
key: options.delete(:key) || WxPay.key,
|
52
52
|
nonce_str: SecureRandom.uuid.tr('-', '')
|
53
|
-
}.merge(params)
|
53
|
+
}.merge(params)
|
54
54
|
|
55
55
|
check_required_options(params, INVOKE_CLOSEORDER_REQUIRED_FIELDS)
|
56
56
|
|
@@ -85,6 +85,7 @@ module WxPay
|
|
85
85
|
params = {
|
86
86
|
appId: options.delete(:appid) || WxPay.appid,
|
87
87
|
package: "prepay_id=#{params.delete(:prepayid)}",
|
88
|
+
key: options.delete(:key) || WxPay.key,
|
88
89
|
nonceStr: params.delete(:noncestr),
|
89
90
|
timeStamp: Time.now.to_i.to_s,
|
90
91
|
signType: 'MD5'
|
@@ -285,7 +286,7 @@ module WxPay
|
|
285
286
|
|
286
287
|
r
|
287
288
|
end
|
288
|
-
|
289
|
+
|
289
290
|
def self.sendredpack(params, options={})
|
290
291
|
params = {
|
291
292
|
wxappid: options.delete(:appid) || WxPay.appid,
|
data/lib/wx_pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wx_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jasl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.6.
|
135
|
+
rubygems_version: 2.6.10
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: An unofficial simple wechat pay gem
|