activemerchant-argus 0.1.0 → 0.2.0

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: 303662197f4e5ae3ba0105a92799d5cd25c001e4346db0725a78d3a9624bdb64
4
- data.tar.gz: 9a716dd825911e415451b3d6884cf536c55403ceb08fda6ef305f04b8e4d63f5
3
+ metadata.gz: 2dd45ec5c87988dd1ba2276bbaa5f5bbd9b075edb5e0a4f63d1bbe30fa80e285
4
+ data.tar.gz: 4c987839c63513bbbc6516696c3c8d8e2caf0cbc3c555b336c443a914cd8f490
5
5
  SHA512:
6
- metadata.gz: fbc9838e285f6e39e713a1f3e75c2dcd2406e6744be50c4c8da599dc7f01c22984d6ea5d3daae108077061cacbfce847cc6bdc9e9b32cc360d6973f2974d553b
7
- data.tar.gz: 0dab2033c37073f8429ba5fdbade13e0a58472d65087f25e6e489dce50a9aba39fd08b35a8b0f09037035655a00998af64a7e8c137267b1b74b9935100db97f0
6
+ metadata.gz: 103e8b379cec538b68eb3dbc4423794d8f809d0cd1bfb1cf20ad2dcb7e6c13794c3e4d157aa8956fa18d1dacd6dc27c5b2d818d7b78c6e4442a79a9e235a6a96
7
+ data.tar.gz: 27ab481c2b835539b8de3e896a3daf0dfb05a5574755e9fefef60c7d1f9f6495386ef19ca0aea9e1eaf21d25cfd2e1219f27bfc47e65f82a4679f163c685b9ca
data/README.md CHANGED
@@ -19,7 +19,7 @@ And then execute:
19
19
 
20
20
  ## Usage
21
21
 
22
- TODO: Write usage instructions here
22
+ See [ActiveMerchant](https://github.com/activemerchant/active_merchant#usage).
23
23
 
24
24
  ## Development
25
25
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'activemerchant'
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 2.0"
28
- spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "rake"
29
29
  spec.add_development_dependency('test-unit', '~> 3')
30
30
  spec.add_development_dependency('mocha', '~> 1')
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveMerchant
2
2
  module Argus
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -38,6 +38,7 @@ module ActiveMerchant #:nodoc:
38
38
  add_payment(post, payment)
39
39
  add_address(post, payment, options)
40
40
  add_customer_data(post, options)
41
+ add_3ds_auth(post, options)
41
42
 
42
43
  commit('CCAUTHCAP', post)
43
44
  end
@@ -48,6 +49,7 @@ module ActiveMerchant #:nodoc:
48
49
  add_payment(post, payment)
49
50
  add_address(post, payment, options)
50
51
  add_customer_data(post, options)
52
+ add_3ds_auth(post, options)
51
53
 
52
54
  commit('CCAUTHORIZE', post)
53
55
  end
@@ -91,6 +93,14 @@ module ActiveMerchant #:nodoc:
91
93
 
92
94
  private
93
95
 
96
+ def add_3ds_auth(post, options)
97
+ if options[:three_d_secure]
98
+ post[:p3ds_eci] = options.dig(:three_d_secure, :eci)
99
+ post[:p3ds_cavv] = options.dig(:three_d_secure, :cavv)
100
+ post[:p3ds_xid] = options.dig(:three_d_secure, :xid)
101
+ end
102
+ end
103
+
94
104
  def add_customer_data(post, options)
95
105
  post[:cust_email] = options[:email] unless empty?(options[:email])
96
106
  post[:cust_fname] = options[:first_name]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant-argus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piers Chambers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-16 00:00:00.000000000 Z
11
+ date: 2020-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: test-unit
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.0.3
123
+ rubygems_version: 3.0.1
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Active Merchant extension to support Inovio payment gateway (f.k.a. Argus)