qiwi-pay 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 60c8f5c5412bc5d4a2776452ab32ff441e67df9636f4fa29c4074e8eb53b461f
4
- data.tar.gz: ad3a7a8e6bc95720adc3753b13b9dcd113cda324beacebcdd5a5515115001ba3
3
+ metadata.gz: d9764c1135cab1afcb4477834f4aa25175bf120a343a5a79996012cc0939a1ce
4
+ data.tar.gz: dfe175d31db79f93187e8ec29ea79153e615e27f093aa9b4da56ad9a700af0eb
5
5
  SHA512:
6
- metadata.gz: fb2968fd93dea9c3dbe1a84e48e36b2ec71febdf055b0356c9fd9dedc6fa69b90231dcd6ea779df2793eebf58d5773999d0f8caf0fae9c41c5935fdbda3d9b9c
7
- data.tar.gz: c1ef2a442318ae89abb25eeba918074ddf3fc941a9b5e2bf9810bacce78d80b5d564ab36d10c4322147d3a8541b17693fc8042cb9e1b175c6c44de42b8720a0e
6
+ metadata.gz: 8d12c73a17f4e67c052c700bd37843b06a0f6c7a8db854a9e00a73786e95f7afc2bb3ff46da9b231d628b1585645e714ddd9cc45e0c4a291ca265773080d23a4
7
+ data.tar.gz: e5a5c977e243c5e39ee751e17ddd08acaece3f053742e2edf478c6b82794fb447e73ede4730a77647ee928d4c6705c605b2528a860ed135935b7b2fccce6def6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiwi-pay (0.1.3)
4
+ qiwi-pay (0.1.4)
5
5
  rest-client (>= 1.8.0, < 2.1)
6
6
 
7
7
  GEM
@@ -22,7 +22,7 @@ module QiwiPay
22
22
  cf1 cf2 cf3 cf4 cf5
23
23
  product_name merchant_uid modifiers card_token order_expire
24
24
  callback_url success_url decline_url
25
- cheque
25
+ cheque merchant_cheque
26
26
  ].freeze
27
27
 
28
28
  attr_accessor(*ATTRIBUTES)
@@ -11,6 +11,10 @@ module QiwiPay
11
11
  @params = params.tap do |hs|
12
12
  hs.delete :sign
13
13
  hs.delete 'sign'
14
+ hs.delete :cheque
15
+ hs.delete 'cheque'
16
+ hs.delete :merchant_cheque
17
+ hs.delete 'merchant_cheque'
14
18
  end
15
19
  @secret = secret.to_s
16
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QiwiPay
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -24,7 +24,7 @@ module QiwiPay::Wpf
24
24
  cf1 cf2 cf3 cf4 cf5
25
25
  product_name merchant_uid modifiers card_token order_expire
26
26
  callback_url success_url decline_url
27
- cheque
27
+ merchant_cheque
28
28
  ].freeze
29
29
  end
30
30
  end
@@ -21,6 +21,18 @@ RSpec.describe QiwiPay::Signature do
21
21
  params['sign'] = 'sign2'
22
22
  expect(subject).to eq 'abc|asd|b|cdf|zzz'
23
23
  end
24
+
25
+ it 'should ignore `cheque` parameter' do
26
+ params[:cheque] = 'cheque1'
27
+ params['cheque'] = 'cheque2'
28
+ expect(subject).to eq 'abc|asd|b|cdf|zzz'
29
+ end
30
+
31
+ it 'should ignore `merchant_cheque` parameter' do
32
+ params[:merchant_cheque] = 'cheque1'
33
+ params['merchant_cheque'] = 'cheque2'
34
+ expect(subject).to eq 'abc|asd|b|cdf|zzz'
35
+ end
24
36
  end
25
37
 
26
38
  describe '#sign' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiwi-pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klimenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-19 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client