Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

Cybersource test error cards are going through successfully

Scope

Why is the test card for error not working as expected for Cybersource?

Solution

Cybersource gateway when tested with error cards for failed transactions goes through successfully.

This is because Cybersource gateway accepts all cards in the test mode and there are no transaction declined cards for Cybersource. Even the test decline cards present in our docs do not work for Cybersource.

However, as per Cybersource, you can use the zip code 46282 on the payment details page of the checkout (not the billing page) to generate a decline with any card number.

Reference - https://community.developer.cybersource.com/t5/Integration-and-Testing/Declined-Card-being-approved-in-Test-Mode/m-p/70948#M43632

Was this article helpful?