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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58a6b1dc23e2ff537f96b76577cf18a66d14a4af
4
- data.tar.gz: 73b335f2e39b73e5e9947931166fbaf610dbdf6a
3
+ metadata.gz: ea8c2a2950264c3ef20b181aecd5dd1b03a1b514
4
+ data.tar.gz: 983a59f2c04e8bed5d7747b8f17b8f143935b320
5
5
  SHA512:
6
- metadata.gz: e2863bff013fe17fd06e8fdf8f42652362c90ca03851ac9394eb10a752390720749decf367f45d208a2fcf127025bce06da2e089113110cadc8e2d5b1dadb48a
7
- data.tar.gz: 91f2705e8d4d05441f8accee69fdaddb41f0d451b718970c00b7c354ed960b5cb047364e6c5169f990b8640547a3a64604f8c4c1542c6b8962d697d5115b038b
6
+ metadata.gz: a1b20a71134dcaa5a96a9fd9a7f165af93bee435dbbdc3dce25393b36b9669076650a1ca0519b69cde4c51428293991ef92c9663f84e13e44172471143e30215
7
+ data.tar.gz: 7bac70017ebe7a3117e51285addc63c42d0eb023fbd301606985a0a296dbe12f53b9235229fba604139b73e14fec3354a1b9174915521ceea2c19c2e65530925
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module WxPay
2
- VERSION = '0.14.1'
2
+ VERSION = '0.14.2'
3
3
  end
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.1
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-01-21 00:00:00.000000000 Z
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.8
135
+ rubygems_version: 2.6.10
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: An unofficial simple wechat pay gem