Testing Your Integration
Set up your test environment and use test credentials
Testing Your Integration
Before going live, use the Cost+ test environment to verify your integration works correctly.
Getting Your API Credentials
- Log in to the Cost+ admin portal.
- Navigate to Settings > API Key.
- Copy your API key.
[!NOTE] Test mode is indicated by the
active-testingstatus on your account. All transactions made in test mode are simulated and will not process real payments.
Creating Test Projects
Create a test project via the API to isolate your testing activity:
curl -u YOUR_API_KEY: \
-X POST \
-H "Content-Type: application/json" \
https://api.costplus.online/v1/merchants/self/projects/Test Card Numbers
Use the card numbers below to simulate different payment scenarios. Do not use real card numbers in test mode.
Shift4 Test Cards
| Card Number | Flow | Brand | Result |
|---|---|---|---|
4018810000100036 | Frictionless | Visa | Success |
5420711000210016 | Frictionless | Mastercard | Success |
375987000169677 | Frictionless | Amex | Success |
36849800000679 | Frictionless | Diners Club | Success |
4018810000150015 | Challenge | Visa | 0101 success / 3333 fail |
5299910010000015 | Challenge | Mastercard | 4445 success / 9999 fail |
375987000000005 | Challenge | Amex | 5678 success / 3333 fail |
6011947300799885 | Challenge | Discover | 5678 success / 3333 fail |
[!TIP] For Challenge flow cards, the codes listed are the one-time passwords to enter during 3D Secure authentication. Use the success code to simulate a successful payment or the fail code to simulate a declined payment.
Rapyd Test Cards
| Card Number | CVV | Brand | Result |
|---|---|---|---|
4111111111111111 | any | Visa | Success |
5544330000000037 | any | Mastercard | Success |
4462030000000000 | any | Visa | Success |
4111111111111105 | any | Visa | Do Not Honor |
4111111111111143 | any | Visa | Stolen Card |
4111111111111151 | any | Visa | Insufficient Funds |
[!WARNING] Test card numbers only work against the test environment. Submitting them to the live API will result in a declined transaction.