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 +4 -4
- data/README.md +1 -1
- data/active_merchant-argus.gemspec +1 -1
- data/lib/active_merchant/argus/version.rb +1 -1
- data/lib/active_merchant/billing/gateways/argus.rb +10 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd45ec5c87988dd1ba2276bbaa5f5bbd9b075edb5e0a4f63d1bbe30fa80e285
|
4
|
+
data.tar.gz: 4c987839c63513bbbc6516696c3c8d8e2caf0cbc3c555b336c443a914cd8f490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 103e8b379cec538b68eb3dbc4423794d8f809d0cd1bfb1cf20ad2dcb7e6c13794c3e4d157aa8956fa18d1dacd6dc27c5b2d818d7b78c6e4442a79a9e235a6a96
|
7
|
+
data.tar.gz: 27ab481c2b835539b8de3e896a3daf0dfb05a5574755e9fefef60c7d1f9f6495386ef19ca0aea9e1eaf21d25cfd2e1219f27bfc47e65f82a4679f163c685b9ca
|
data/README.md
CHANGED
@@ -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"
|
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
|
@@ -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.
|
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:
|
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: '
|
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: '
|
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.
|
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)
|