-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EBANX: Change amount for Mexico and Chile
Merchants using Ebanx are seeing transactions being denied at the card verify flow due to the minimum amount expected in this type of transaction. Increase the value to be accepted by the acquirers in the card verify flow. When using local currencies we end up doing the verify using the local currency, and in those cases 100 may be less than the minimum value for a valid transaction in some countries. Remote: 26 tests, 70 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 96.1538% passed Unit: 5069 tests, 75101 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Rubocop: 728 files inspected, no offenses detected Closes #4337
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,6 +233,26 @@ def test_successful_verify_for_chile | |
assert_match %r{Accepted}, response.message | ||
end | ||
|
||
def test_successful_verify_for_mexico | ||
options = @options.merge({ | ||
order_id: generate_unique_id, | ||
ip: '127.0.0.1', | ||
email: '[email protected]', | ||
birth_date: '10/11/1980', | ||
billing_address: address({ | ||
address1: '1040 Rua E', | ||
city: 'Toluca de Lerdo', | ||
state: 'MX', | ||
zip: '29269', | ||
country: 'MX', | ||
phone_number: '8522847035' | ||
}) | ||
}) | ||
response = @gateway.verify(@credit_card, options) | ||
assert_success response | ||
assert_match %r{Accepted}, response.message | ||
end | ||
|
||
def test_failed_verify | ||
response = @gateway.verify(@declined_card, @options) | ||
assert_failure response | ||
|