aliquot-pay 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aliquot-pay.rb +7 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 900a3ab50c572b86accb200902899275239c68e2951792467be905fa8495f796
4
- data.tar.gz: ed4476fc237b67d49ea342bdca9db82782332ccf06be65de0d06ac6cf106b19f
3
+ metadata.gz: f0347fa0a06522e58ab9c2a9377c833cf362162eeb56d00ea1115282127d4a68
4
+ data.tar.gz: 15619eb5744be9d8e9dfe640ef61f75ed665ee4e036c8e0fc504df95ebac95d7
5
5
  SHA512:
6
- metadata.gz: 6ddea3d61ed2dc2e2b35a3ddcb4e2afc329707af26a823efd55ba54d2491264e1af0e02a9a08e5b3efa005b69ffee15bc07b8a5566bad0b614acdb3b4a4d68f2
7
- data.tar.gz: fd98206c62e82c6bda44e15c7bc9ac9ca2e279bbd0bb1e7ea78d671d1886ac917f5aba05fb7581832ab148f8577ec867eab9a8b1908d3ebbf3ce1de016ae70a0
6
+ metadata.gz: '0891095df48ec5fc8fb35705d369ff0504b75c41af817098155278c9dd61bbc1a53a1b4813b40bc48cb733cb1d8bb01e40680758d423c5112950e6d434ae939f'
7
+ data.tar.gz: 2daa9b11ae45383ebe4cd85a5f48cd394bed7e3f3a54ce212e566ef66359d01453cabbbc8c41b0231edb805fdfc62463645b05c097706117a1abacfa1bef0cb5
data/lib/aliquot-pay.rb CHANGED
@@ -29,6 +29,13 @@ class AliquotPay
29
29
  @protocol_version = protocol_version
30
30
  @root_key = root_key
31
31
  @type = type
32
+ if @type == :app
33
+ @auth_method = 'CRYPTOGRAM_3DS'
34
+ if @protocol_version == :ECv1
35
+ @auth_method = '3DS'
36
+ @payment_method = 'TOKENIZED_CARD'
37
+ end
38
+ end
32
39
  end
33
40
 
34
41
  def token
@@ -230,14 +237,6 @@ class AliquotPay
230
237
  def build_token
231
238
  return @token if @token
232
239
 
233
- if @type == :app
234
- @auth_method = 'CRYPTOGRAM_3DS'
235
- if @protocol_version == :ECv1
236
- @auth_method = '3DS'
237
- @payment_method = 'TOKENIZED_CARD'
238
- end
239
- end
240
-
241
240
  res = {
242
241
  'protocolVersion' => @protocol_version.to_s,
243
242
  'signedMessage' => @signed_message || signed_message_string,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliquot-pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clearhaus
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.1.6
82
+ rubygems_version: 3.3.26
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Generates Google Pay test dummy tokens