Simulation tests for advanced credit and debit card payments
In the advanced credit and debit card fields, you can pass specific information to trigger simulated positive and negative test scenarios. You can handle these responses in your code to manage your customer’s experience.
Test with predefined verification responses
After your buyers submit an order, the request reaches a processor, such as Wells Fargo, to resolve the payment request. Processors return the address verification service (AVS), which compares the buyer's billing address against what the issuing bank has on file, and card verification value (CVV), the three- or four-digit number on the card, to provide insights into the transaction.
CCREJECT- in the cardholder name field followed by the scenarios you want to test. You can simulate several scenarios:
Note: Test values are case sensitive.
Here are some sample responses:
|Test value||Scenario||Simulated error response|
||Invalid card number||
||Do not honor card||
Test with customized verification responses
Simulate unique responses based on the processor type and verification checks. There are four processors available:
|Consumer Portfolio Services (CPS)||
|HSBC Bank USA||
Use one of two verification checks or a response code:
- AVS – Any letters you choose
- CVV – Any numbers you choose
- Response code – Any digits you choose
Tip: Avoid combining various parameters into one request. A sample schema follows the