aliquot-pay 1.0.0 → 2.1.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 +5 -5
  3. metadata +45 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a52570068b0b6f57550e57a2c10abef65e06ab5ba4f37988cae74ac5a97f8c85
4
- data.tar.gz: 3a26fe4ac93a160960ecaf57951d5bb5d6b3977c913057f0edbed0ed7bbe756b
3
+ metadata.gz: 5f1155997b8d956147e17ca76c1fa36341675f9a8ba4932b3d6a1a6152bec885
4
+ data.tar.gz: aec39bc7bac88cc34ae9d36b4d09af287c42247b23c1e134c930e90d6dc86c75
5
5
  SHA512:
6
- metadata.gz: 983bf42c16fc65c840c0e65b3eeafba6148edfb8d4be67f5b94a4348619aa61e07323ad0419116ad4df1f37562427e51a97bab64573f06a68e271a5fa7f513e6
7
- data.tar.gz: 1feed4a38dc29a91554fa272c492e84a9941454a10ebfbf11058254e06cc9993778961c424d4564d5861e6be025e9a0675f5e1dd5779bf7d175c65e72ba4cee0
6
+ metadata.gz: d096ada956941cb30fd187db28f8b83665bd8b667280cd834fed2b2b1fa9535d73a163941674ef11702f429fef1b5804168059f56e02d53478bf0212e9fe3f30
7
+ data.tar.gz: ea714b68416696db99049926200cefdcc65f2a14ac55ee6d5ead1c7132d4de0420b3b429610ef3637e1ed2aad3763edcc3162fa8a873bd686a915f04e3e53806
data/lib/aliquot-pay.rb CHANGED
@@ -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.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clearhaus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hkdf
@@ -24,6 +24,48 @@ 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.1.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.1.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '13.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '13.0'
27
69
  - !ruby/object:Gem::Dependency
28
70
  name: rspec
29
71
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
107
  - !ruby/object:Gem::Version
66
108
  version: '0'
67
109
  requirements: []
68
- rubygems_version: 3.0.2
110
+ rubygems_version: 3.1.6
69
111
  signing_key:
70
112
  specification_version: 4
71
113
  summary: Generates Google Pay test dummy tokens