Skip to content

Commit

Permalink
Cybersource: Removes Pinless Debit Transaction Functionality and Testing
Browse files Browse the repository at this point in the history
Local:
5129 tests, 75429 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
Rubocop:
739 files inspected, no offenses detected

Unit:
114 tests, 554 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Note: `test_successful_asynchronous_adjust` needs test creds where async adjust is enabled to succeed.
Remote:
104 tests, 533 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
99.0385% passed
  • Loading branch information
peteroas committed Apr 4, 2022
1 parent 03b0d68 commit a52eab4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
* CyberSource: Remove Pinless Debit Transaction Functionality [peteroas] #4370
* Litle: Add support for Level 2 and 3 enhanced data [curiousepic] #4360
* Rapyd: Add gateway support [meagabeth] #4372
* CyberSource: Update and fix test coverage [peteroas] #4374

== Version 1.125.0 (January 20, 2022)
* Wompi: support gateway [therufs] #4173
Expand Down
12 changes: 9 additions & 3 deletions test/remote/gateways/remote_cyber_source_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def test_purchase_and_void
assert_successful_response(void)
end

# Note: This test will only pass with test account credentials which
# have asynchronous adjustments enabled.
def test_successful_asynchronous_adjust
assert authorize = @gateway_latam.authorize(@amount, @credit_card, @options)
assert_successful_response(authorize)
Expand Down Expand Up @@ -530,9 +532,9 @@ def test_successful_authorization_and_failed_capture
assert auth = @gateway.authorize(@amount, @credit_card, @options)
assert_successful_response(auth)

assert capture = @gateway.capture(@amount + 10, auth.authorization, @options.merge({ national_tax_indicator: 1 }))
assert capture = @gateway.capture(@amount + 100000000, auth.authorization, @options.merge({ national_tax_indicator: 1 }))
assert_failure capture
assert_equal 'The requested amount exceeds the originally authorized amount', capture.message
assert_equal 'One or more fields contains invalid data: (Amount limit)', capture.message
end

def test_failed_capture_bad_auth_info
Expand Down Expand Up @@ -807,6 +809,10 @@ def test_successful_3ds_requests_with_unenrolled_card
assert response.success?
end

# to create a valid pares, use the test credentials to request `test_3ds_enroll_request_via_purchase` with debug=true.
# Extract this XML and generate an accessToken. Using this access token to create a form, visit the stepUpURL provided
# and check the network exchange in the browser dev console for a CCA, which will contain a usable PaRes. Documentation for this feature
# can be found at https://docs.cybersource.com/content/dam/new-documentation/documentation/en/fraud-management/payer-auth/so/payer-auth-so.pdf
def test_successful_3ds_validate_purchase_request
assert response = @gateway.purchase(1202, @three_ds_enrolled_card, @options.merge(payer_auth_validate_service: true, pares: pares))
assert_equal '100', response.params['reasonCode']
Expand Down Expand Up @@ -986,7 +992,7 @@ def test_invalid_field

def pares
<<~PARES
eNqdmFuTqkgSgN+N8D90zD46M4B3J+yOKO6goNyFN25yEUHkUsiv31K7T/ec6dg9u75YlWRlZVVmflWw1uNrGNJa6DfX8G0thVXlRuFLErz+tgm67sRlbJr3ky4G9LWn8N/e1nughtVD4dFawFAodT8OqbBx4NLdj/o8y3JqKlavSLsNr1VS5G/En/if4zX20UUTXf3Yzeu3teuXpCC/TeerMTFfY+/d9Tm8CvRbEB7dJqvX2LO7xj7H7Zt7q0JOd0nwpo3VacjVvMc4pZcXfcjFpMqLc6UHr2vsrrEO3Dp8G+P4Ap+PZy/E9C+c+AtfrrGHfH25mwPnokG2CRxfY18Fa7Q71zD3b2/LKXr0o7cOu0uRh0gDre1He419+nZx8zf87z+kepeu9cPbuk7OX31a3X0iFmvsIV9XtVs31Zu9xt5ba99t2zcAAAksNjsr4N5MVctyGIaN2H6E1vpQWYd+8obPkFPo/zEKZFFxTer4fHf174I1dncFe4Tzba0lUY4mu4Yv3TnLURDjur78hWEQwj/h5M/iGmHIYRzDVxhSCKok+tdvz1FhIOTH4n8aRrl5kSe+myW9W6PEkMI6LoKXH759Z0ZX75YITGWoP5CpP3ximv9xl+ATYoZsYt8b/bK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