Search Overlay

Simulating Card Payments

Simulate the response to a card authorization request. You can return specific response codes by specifying different amounts under $1.00 in the request.

For regular testing, do not use amounts less than $1.00 (100 in minor units) as this will trigger different decline or delay cases.

Amount (Minor Units) HTTP Status Code Error Code Response
1 200   Approved
4 402 3015 The bank has requested that you process the transaction manually by calling the card holder's credit card company.
5 402 3009 Your request has been declined by the issuing bank.
6 500 1007 Clearing house timeout (although the simulator returns immediately; if delay is desired, see amount 96).
11 402 3022 The card has been declined due to insufficient funds.
12 402 3023 Your request has been declined by the issuing bank due to its proprietary card activity regulations.
13 402 3024 Your request has been declined because the issuing bank does not permit the transaction for this card.
20 500 1007 An internal error occurred.
23 402 4002 The transaction was declined by our Risk Management department.
24 402 3007 Your request has failed the AVS check.
25 402 4001 The card number or email address associated with this transaction is in our negative database.
77 402 3060 Applies for Acquiring (UK/EU). Your request has been declined because Strong Customer Authentication is required.
90 200   Approved with 5-second delay
91 200   Approved with 10-second delay
92 200   Approved with 15-second delay
93 200   Approved with 20-second delay
94 200   Approved with 25-second delay
95 200   Approved with 30-second delay
96 500 1007 Declined with 35-second delay. Transaction timed out after 30 seconds.
100 200   Approved

cURL -X POST https://api.test.paysafe.com/cardpayments/v1/accounts/89987201/auths \
-u devcentre322:B-qa2-0-53625f86-302c021476f52bdc9deab7aea876bb28762e62f92fc6712d0214736abf501e9675e55940e83ef77f5c304edc7968 \
-H 'Content-Type: application/json' \
-d ' {
"merchantRefNum" : "demosimulate-2",
"amount" : 4,
"settleWithAuth":true,
"card" : {
"cardNum" : "4111111111111111",
"cardExpiry":{
"month":2,
"year":2027
},
"cvv":123
},
"billingDetails":{
"street":"100 Queen Street West",
"city":"Toronto",
"state":"ON",
"country":"CA",
"zip":"M5H 2N2"
}
} '

{
"links":[
{
"rel":"self",
"href":"https://api.test.paysafe.com/cardpayments/v1/accounts/89987201/auths/41745f5d-842b-4a3a-bee5-fc558e566f2f"
}
],
"id":"41745f5d-842b-4a3a-bee5-fc558e566f2f",
"merchantRefNum":"demosimulate-2",
"error":{
"code":"3015",
"message":"The bank has requested that you process the transaction manually by calling the cardholder's credit card company."
},
"riskReasonCode":[
1003
],
"cvvVerification":"MATCH"
}
On this Page