aliquot-pay 1.0.0 → 2.0.0

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 +5 -5
  3. metadata +21 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a52570068b0b6f57550e57a2c10abef65e06ab5ba4f37988cae74ac5a97f8c85
4
- data.tar.gz: 3a26fe4ac93a160960ecaf57951d5bb5d6b3977c913057f0edbed0ed7bbe756b
3
+ metadata.gz: 3b09f20a26a4ba4bd85ef274044bca8f84fd5471c4393b7e14e3aae8a8ee9e48
4
+ data.tar.gz: aa5e97d77be4ce999063378eb5bce12f4bbd6e7509fbd3f100388281197175cd
5
5
  SHA512:
6
- metadata.gz: 983bf42c16fc65c840c0e65b3eeafba6148edfb8d4be67f5b94a4348619aa61e07323ad0419116ad4df1f37562427e51a97bab64573f06a68e271a5fa7f513e6
7
- data.tar.gz: 1feed4a38dc29a91554fa272c492e84a9941454a10ebfbf11058254e06cc9993778961c424d4564d5861e6be025e9a0675f5e1dd5779bf7d175c65e72ba4cee0
6
+ metadata.gz: 1b0747731b0320552cc308b76a32c2786358a9ddd74136498da0b3145981f9584ae184d06fe903cede3b815fc6dc5f82fbccf24dde754aebb3a35961d5df4db9
7
+ data.tar.gz: 71018fd9c9885e435a298bd8138f471494bba598a0608c7e52f73d85625b597d4f2993df82cae1c4448dfa6bdd14682864d10692e855433cc14010d7cf032a5e
@@ -11,7 +11,7 @@ class AliquotPay
11
11
 
12
12
  DEFAULTS = {
13
13
  info: 'Google',
14
- merchant_id: '0123456789',
14
+ recipient_id: 'merchant:0123456789',
15
15
  }.freeze
16
16
 
17
17
  attr_accessor :signature, :intermediate_signing_key, :signed_message
@@ -23,7 +23,7 @@ class AliquotPay
23
23
  attr_accessor :cryptogram, :eci_indicator
24
24
 
25
25
  attr_accessor :recipient, :info, :root_key, :intermediate_key
26
- attr_writer :merchant_id, :shared_secret, :token, :signed_key_string
26
+ attr_writer :recipient_id, :shared_secret, :token, :signed_key_string
27
27
 
28
28
  def initialize(protocol_version = :ECv2)
29
29
  @protocol_version = protocol_version
@@ -181,7 +181,7 @@ class AliquotPay
181
181
 
182
182
  signature_string =
183
183
  signed_string_message = ['Google',
184
- "merchant:#{merchant_id}",
184
+ recipient_id,
185
185
  @protocol_version.to_s,
186
186
  signed_message_string].map do |str|
187
187
  [str.length].pack('V') + str
@@ -222,8 +222,8 @@ class AliquotPay
222
222
  @token = res
223
223
  end
224
224
 
225
- def merchant_id
226
- @merchant_id ||= DEFAULTS[:merchant_id]
225
+ def recipient_id
226
+ @recipient_id ||= DEFAULTS[:recipient_id]
227
227
  end
228
228
 
229
229
  def shared_secret
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliquot-pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clearhaus
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hkdf
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: aliquot
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rspec
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -38,7 +52,7 @@ dependencies:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
54
  version: '3'
41
- description:
55
+ description:
42
56
  email: hello@clearhaus.com
43
57
  executables: []
44
58
  extensions: []
@@ -50,7 +64,7 @@ homepage: https://github.com/clearhaus/aliquot-pay
50
64
  licenses:
51
65
  - MIT
52
66
  metadata: {}
53
- post_install_message:
67
+ post_install_message:
54
68
  rdoc_options: []
55
69
  require_paths:
56
70
  - lib
@@ -65,8 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
79
  - !ruby/object:Gem::Version
66
80
  version: '0'
67
81
  requirements: []
68
- rubygems_version: 3.0.2
69
- signing_key:
82
+ rubygems_version: 3.1.4
83
+ signing_key:
70
84
  specification_version: 4
71
85
  summary: Generates Google Pay test dummy tokens
72
86
  test_files: []