-
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
- 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 | ||
|