aliquot-pay 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aliquot-pay.rb +7 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0347fa0a06522e58ab9c2a9377c833cf362162eeb56d00ea1115282127d4a68
|
|
4
|
+
data.tar.gz: 15619eb5744be9d8e9dfe640ef61f75ed665ee4e036c8e0fc504df95ebac95d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
82
|
+
rubygems_version: 3.3.26
|
|
83
83
|
signing_key:
|
|
84
84
|
specification_version: 4
|
|
85
85
|
summary: Generates Google Pay test dummy tokens
|