activemerchant-argus 0.4.0 → 0.5.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 +3 -3
- data/lib/active_merchant/argus/version.rb +1 -1
- data/lib/active_merchant/billing/gateways/argus.rb +9 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7b62bf2f505c75d332e851be852a41734853c840a2447de3f3d2d7ad283d973
|
4
|
+
data.tar.gz: d7c1566df38320b8c498c9e145682474f05f7d9dc78e85d8d6431fdf71d8fbd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aef8584931a40038d42b1d4e906dfbd459dd2a079722132c0e153ff94ec60184c17cd448921c9dd661a1a0398f1d3d399be5e6dd529dd16acc9c1d7fddbe81c
|
7
|
+
data.tar.gz: 9b0a7ca2c99b6301f482b19e39ef4f3873726bba8ecceafad55dd1bb69366ac93ca7118a192fb4eb913d144bc49dc4fd28ba6b98ea73cb09d82961c2acdb8274
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Active Merchant extension to support Inovio payment gateway (f.k.a. Argus)
|
4
4
|
|
5
5
|
[![Version ][rubygems_badge]][rubygems]
|
6
|
-
[![
|
6
|
+
[![Github Actions ][actions_badge]][actions]
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
@@ -35,7 +35,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/varyon
|
|
35
35
|
|
36
36
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
37
37
|
|
38
|
+
[actions_badge]: https://github.com/varyonic/activemerchant-argus/workflows/ci/badge.svg
|
39
|
+
[actions]: https://github.com/varyonic/activemerchant-argus/actions
|
38
40
|
[rubygems_badge]: http://img.shields.io/gem/v/activemerchant-argus.svg
|
39
41
|
[rubygems]: https://rubygems.org/gems/activemerchant-argus
|
40
|
-
[travis_badge]: http://img.shields.io/travis/varyonic/activemerchant-argus/master.svg
|
41
|
-
[travis]: https://travis-ci.org/varyonic/activemerchant-argus
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module ActiveMerchant #:nodoc:
|
2
2
|
module Billing #:nodoc:
|
3
|
-
#
|
3
|
+
# Argus Payments is now Inovio Payments.
|
4
|
+
# For more information visit {Inovio}[https://developer.inoviopay.com/]
|
4
5
|
#
|
5
6
|
# Written by Piers Chambers (Varyonic.com)
|
6
7
|
class ArgusGateway < Gateway
|
@@ -13,10 +14,11 @@ module ActiveMerchant #:nodoc:
|
|
13
14
|
self.default_currency = 'USD'
|
14
15
|
self.supported_cardtypes = [:visa, :master, :american_express, :discover, :diners, :jcb]
|
15
16
|
|
16
|
-
self.homepage_url = '
|
17
|
-
self.display_name = '
|
17
|
+
self.homepage_url = 'https://www.inoviopay.com/'
|
18
|
+
self.display_name = 'Inovio Payments'
|
18
19
|
|
19
20
|
STANDARD_ERROR_CODE_MAPPING = {
|
21
|
+
'500' => STANDARD_ERROR_CODE[:processing_error], # Merchant account could not be validated
|
20
22
|
'555' => STANDARD_ERROR_CODE[:call_issuer],
|
21
23
|
'600' => STANDARD_ERROR_CODE[:card_declined],
|
22
24
|
'620' => STANDARD_ERROR_CODE[:invalid_cvc],
|
@@ -100,6 +102,7 @@ module ActiveMerchant #:nodoc:
|
|
100
102
|
post[:p3ds_eci] = options.dig(:three_d_secure, :eci)
|
101
103
|
post[:p3ds_cavv] = options.dig(:three_d_secure, :cavv)
|
102
104
|
post[:p3ds_xid] = options.dig(:three_d_secure, :xid)
|
105
|
+
post[:p3ds_transid] = options.dig(:three_d_secure, :ds_transaction_id)
|
103
106
|
end
|
104
107
|
end
|
105
108
|
|
@@ -108,6 +111,8 @@ module ActiveMerchant #:nodoc:
|
|
108
111
|
post[:cust_fname] = options[:first_name]
|
109
112
|
post[:cust_lname] = options[:last_name]
|
110
113
|
# TODO: first_name, last_name = split_names(address[:name])
|
114
|
+
post[:cust_phone] = options[:phone] unless empty?(options[:phone])
|
115
|
+
post[:xtl_ip] = options[:ip] unless empty?(options[:ip])
|
111
116
|
add_shipping_address(post, options)
|
112
117
|
end
|
113
118
|
|
@@ -216,7 +221,7 @@ module ActiveMerchant #:nodoc:
|
|
216
221
|
|
217
222
|
def post_data(action, parameters = {})
|
218
223
|
parameters[:request_action] = action
|
219
|
-
parameters[:request_api_version] = 4.
|
224
|
+
parameters[:request_api_version] = 4.7
|
220
225
|
parameters[:request_response_format] = 'JSON'
|
221
226
|
parameters.merge!(credentials).to_post_data
|
222
227
|
end
|
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.5.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: 2024-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.3.
|
124
|
+
rubygems_version: 3.3.26
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Active Merchant extension to support Inovio payment gateway (f.k.a. Argus)
|