wx_pay 0.16.0 → 0.16.1

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: dda7cad282f587b4eb9db5afb01d0f55e9b6ae8f
4
- data.tar.gz: a8bf70ef43b11678faf05d70496b962ed9df262a
3
+ metadata.gz: f85be563ed14a79b9df0c89c73f238233e83c0eb
4
+ data.tar.gz: 5ee268829b56d4b6fb7a0d23f7dec8705537b684
5
5
  SHA512:
6
- metadata.gz: 9339a3e811c8a4358766f4e79917f92c000718617de351e116f751d92834144f4b9d363b82a72ca0e92b218cb905687dede973254597f8acd5449c5317ef63e0
7
- data.tar.gz: 7808f6392ddc96ce95874b1de710121a866e631032ef8bb8b2abade3a0e1c936275eb46d9623c7d8ad404c8e0f9ba875e45171cbb7b7c65976093c76e50fae94
6
+ metadata.gz: ba30f0f28856fc9ccd4f02029ca17f956959412055853ed5cdde818108440642fac8a4cb891bc80af242abf954e9829711c396dbe899029b2e6da3bd972bd1da
7
+ data.tar.gz: d63ba4e6dfd25ed38f80cb3257a5f8c9960400597179f1003aae9a916f37e5d9ce4ec0a5567f9302769d55c548751d025c431987566dcfaa7a0e18d93cc6ad4b
data/lib/wx_pay.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'wx_pay/result'
2
2
  require 'wx_pay/sign'
3
3
  require 'wx_pay/service'
4
+ require 'wx_pay/version'
4
5
  require 'openssl'
5
6
 
6
7
  module WxPay
@@ -362,7 +362,6 @@ module WxPay
362
362
  :key => r['sandbox_signkey']
363
363
  })
364
364
  WxPay.sandbox_key = r['sandbox_signkey']
365
- WxPay.sandbox_mch_id = r['mch_id']
366
365
  else
367
366
  warn("WxPay Warn: fetch sandbox sign key failed #{r['return_msg']}")
368
367
  end
data/lib/wx_pay/sign.rb CHANGED
@@ -16,7 +16,7 @@ module WxPay
16
16
  params = params.dup
17
17
  params = params.merge(options)
18
18
  if WxPay.sandbox_mode?
19
- params = params.merge({:mch_id => WxPay.sandbox_mch_id, :key => WxPay.sandbox_key})
19
+ params = params.merge(:key => WxPay.sandbox_key)
20
20
  end
21
21
 
22
22
  sign = params.delete('sign') || params.delete(:sign)
@@ -1,3 +1,3 @@
1
1
  module WxPay
2
- VERSION = '0.16.0'
2
+ VERSION = '0.16.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wx_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jasl