activemerchant-argus 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66e5755776db2a474e3355eee467443d973c8eeec6a0b45027364bf32120f00f
4
- data.tar.gz: 49cd673ef854bd2891fb60b62e0d08ed29c7b0d09f1477dd91309c1cb2fcffb0
3
+ metadata.gz: f80b3a0802a14d1c7573f9bdcf44f4f23176018ac20a97671ad65cbbb3263202
4
+ data.tar.gz: 742b3796dda8d8da300f260b06409e2981da2adee82de8c1657e6d40ff611267
5
5
  SHA512:
6
- metadata.gz: 3a91a1572f79cdb11d886dbc7063f749fbf4faab257cb1d919d99d614f422d4a6439f0916f8204bfd7074e5951fb29e1faab520c3882b4d4d870b733999873ab
7
- data.tar.gz: 42ce6ad9811ad39e875e1780f31cc003556bb04afaf08ff274022ff2f2c3cc48b007e7db6914a567a12b4455de1019a9cc73432ffce9f2037717804e8aeba255
6
+ metadata.gz: 4355a4e50aa16bff9ffccf419f2105a4b78754ba1f7e9c67890efc779e93441a5c108f1d5d639373004d244a2509fc1aced2cdc991f30b199f2202f975ceae45
7
+ data.tar.gz: 5cfc8b22b72f234091b565806bc629299200ce511636000a6bdf4c5ef3afe5a64087e359ec06f1121ccbd37cd3cd9e4d2bece319b52600d5ca205ffb48364253
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
- [![Travis CI ][travis_badge]][travis]
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,5 +1,5 @@
1
1
  module ActiveMerchant
2
2
  module Argus
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  module ActiveMerchant #:nodoc:
2
2
  module Billing #:nodoc:
3
- # For more information visit {Argus Payments}[http://www.arguspayments.com/pubsite/public/?/support/document]
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 = 'http://http://www.arguspayments.com/'
17
- self.display_name = 'Argus Payments'
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
 
@@ -133,7 +138,7 @@ module ActiveMerchant #:nodoc:
133
138
 
134
139
  def add_invoice(post, money, options)
135
140
  post[:amount] = amount(money)
136
- post[:currency] = (options[:currency] || currency(money))
141
+ post[:request_currency] = (options[:currency] || currency(money))
137
142
  post[:li_prod_id_1] = options[:li_prod_id_1] # 'Dynamic Amount Product ID'
138
143
  post[:li_value_1] = amount(money)
139
144
  end
@@ -142,7 +147,6 @@ module ActiveMerchant #:nodoc:
142
147
  post[:pmt_expiry] = sprintf('%02d/%04d', payment.month, payment.year)
143
148
  post[:pmt_key] = payment.verification_value
144
149
  post[:pmt_numb] = truncate(payment.number, 16)
145
- post[:request_currency] = 'USD'
146
150
  post[:merch_acct_id] = @options[:merch_acct_id]
147
151
  end
148
152
 
@@ -216,7 +220,7 @@ module ActiveMerchant #:nodoc:
216
220
 
217
221
  def post_data(action, parameters = {})
218
222
  parameters[:request_action] = action
219
- parameters[:request_api_version] = 4.4
223
+ parameters[:request_api_version] = 4.7
220
224
  parameters[:request_response_format] = 'JSON'
221
225
  parameters.merge!(credentials).to_post_data
222
226
  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.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piers Chambers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2024-12-20 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.7
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)