Cost+ Docs

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

  1. Log in to the Cost+ admin portal.
  2. Navigate to Settings > API Key.
  3. Copy your API key.

[!NOTE] Test mode is indicated by the active-testing status 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:

Create a test project
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 NumberFlowBrandResult
4018810000100036FrictionlessVisaSuccess
5420711000210016FrictionlessMastercardSuccess
375987000169677FrictionlessAmexSuccess
36849800000679FrictionlessDiners ClubSuccess
4018810000150015ChallengeVisa0101 success / 3333 fail
5299910010000015ChallengeMastercard4445 success / 9999 fail
375987000000005ChallengeAmex5678 success / 3333 fail
6011947300799885ChallengeDiscover5678 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 NumberCVVBrandResult
4111111111111111anyVisaSuccess
5544330000000037anyMastercardSuccess
4462030000000000anyVisaSuccess
4111111111111105anyVisaDo Not Honor
4111111111111143anyVisaStolen Card
4111111111111151anyVisaInsufficient Funds

[!WARNING] Test card numbers only work against the test environment. Submitting them to the live API will result in a declined transaction.

On this page