Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPG: Remove Uruguay from supported countries #4311

Merged
merged 1 commit into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* DecidirPlus: Added `authorize`, `capture`, `void`, and `verify` methods [ajawadmirza] #4284
* Paymentez: Fix `authorize` to call `purchase` for otp flow [ajawadmirza] #4310
* Orbital: Indicate support for network tokenization [dsmcclain] #4309
* IPG: remove `uruguay` from supported countries [ajawadmirza] #4311

== Version 1.125.0 (January 20, 2022)
* Wompi: support gateway [therufs] #4173
Expand Down
3 changes: 1 addition & 2 deletions lib/active_merchant/billing/gateways/ipg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ class IpgGateway < Gateway
self.test_url = 'https://test.ipg-online.com/ipgapi/services'
self.live_url = 'https://www5.ipg-online.com'

self.supported_countries = %w(UY AR)
self.supported_countries = %w(AR)
self.default_currency = 'ARS'
self.supported_cardtypes = %i[visa master american_express discover]

self.homepage_url = 'https://www.ipg-online.com'
self.display_name = 'IPG'

CURRENCY_CODES = {
'UYU' => '858',
'ARS' => '032'
}

Expand Down
4 changes: 2 additions & 2 deletions test/unit/gateways/ipg_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ def test_successful_verify

def test_successful_verify_with_currency_code
response = stub_comms do
@gateway.verify(@credit_card, { currency: 'UYU' })
@gateway.verify(@credit_card, { currency: 'ARS' })
end.check_request do |_endpoint, data, _headers|
doc = REXML::Document.new(data)
assert_match('858', REXML::XPath.first(doc, '//v1:Payment//v1:Currency').text) if REXML::XPath.first(doc, '//v1:CreditCardTxType//v1:Type')&.text == 'preAuth'
assert_match('032', REXML::XPath.first(doc, '//v1:Payment//v1:Currency').text) if REXML::XPath.first(doc, '//v1:CreditCardTxType//v1:Type')&.text == 'preAuth'
end.respond_with(successful_authorize_response, successful_void_response)
assert_success response
end
Expand Down