-
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.
WorldPay: Update xml tag for Credit Cards
Update the xml tag for Credit Cards to be CARD-SSL instead of being specific to card brand. Remote: 100 tests, 416 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Unit: 109 tests, 637 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
- Loading branch information
Alma Malambo
committed
Jul 6, 2023
1 parent
3c34a61
commit 2566c8b
Showing
2 changed files
with
9 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,7 +201,7 @@ def test_successful_authorize_without_name | |
end.check_request do |_endpoint, data, _headers| | ||
assert_match(/4242424242424242/, data) | ||
assert_no_match(/cardHolderName/, data) | ||
assert_match(/VISA-SSL/, data) | ||
assert_match(/CARD-SSL/, data) | ||
end.respond_with(successful_authorize_response) | ||
assert_success response | ||
assert_equal 'R50704213207145707', response.authorization | ||
|
@@ -1174,7 +1174,7 @@ def test_successful_store | |
assert_match %r(4242424242424242), data | ||
assert_no_match %r(<order>), data | ||
assert_no_match %r(<paymentDetails>), data | ||
assert_no_match %r(<VISA-SSL>), data | ||
assert_no_match %r(<CARD-SSL>), data | ||
end.respond_with(successful_store_response) | ||
|
||
assert_success response | ||
|
@@ -2136,7 +2136,7 @@ def sample_authorization_request | |
<amount value="100" exponent="2" currencyCode="HKD"/> | ||
<orderContent>Products Products Products</orderContent> | ||
<paymentDetails> | ||
<VISA-SSL> | ||
<CARD-SSL> | ||
<cardNumber>4242424242424242</cardNumber> | ||
<expiryDate> | ||
<date month="09" year="2011"/> | ||
|
@@ -2156,7 +2156,7 @@ def sample_authorization_request | |
<telephoneNumber>(555)555-5555</telephoneNumber> | ||
</address> | ||
</cardAddress> | ||
</VISA-SSL> | ||
</CARD-SSL> | ||
<session id="asfasfasfasdgvsdzvxzcvsd" shopperIPAddress="127.0.0.1"/> | ||
</paymentDetails> | ||
<shopper> | ||
|
@@ -2179,7 +2179,7 @@ def transcript | |
<description>Purchase</description> | ||
<amount value="100" currencyCode="GBP" exponent="2"/> | ||
<paymentDetails> | ||
<VISA-SSL> | ||
<CARD-SSL> | ||
<cardNumber>4111111111111111</cardNumber> | ||
<expiryDate> | ||
<date month="09" year="2016"/> | ||
|
@@ -2195,7 +2195,7 @@ def transcript | |
<countryCode>US</countryCode> | ||
</address> | ||
</cardAddress> | ||
</VISA-SSL> | ||
</CARD-SSL> | ||
</paymentDetails> | ||
<shopper> | ||
<shopperEmailAddress>[email protected]</shopperEmailAddress> | ||
|
@@ -2214,7 +2214,7 @@ def scrubbed_transcript | |
<description>Purchase</description> | ||
<amount value="100" currencyCode="GBP" exponent="2"/> | ||
<paymentDetails> | ||
<VISA-SSL> | ||
<CARD-SSL> | ||
<cardNumber>[FILTERED]</cardNumber> | ||
<expiryDate> | ||
<date month="09" year="2016"/> | ||
|
@@ -2230,7 +2230,7 @@ def scrubbed_transcript | |
<countryCode>US</countryCode> | ||
</address> | ||
</cardAddress> | ||
</VISA-SSL> | ||
</CARD-SSL> | ||
</paymentDetails> | ||
<shopper> | ||
<shopperEmailAddress>[email protected]</shopperEmailAddress> | ||
|