Skip to main content
To use the sandbox environment, you must generate a token using your test credentials (clientId and clientSecret from the dashboard) and the sandbox base URL (https://sandbox.nomba.com). Using the wrong URL or credentials will cause authentication failures. See the Environment page for details.
Test cards are provided for use in the sandbox environment only. They cannot be used for real transactions and should not be used in production.

Test Card Details

Use the following card details when testing transactions in a sandbox or staging environment.

Test cards

For all cards: CVV and expiry are not validated β€” any 3-digit CVV and any future expiry date are accepted. The card number alone determines the outcome.

PIN and OTP

Transaction scenarios

This test card should only be used in development or staging environments. Do not attempt real transactions with this card.

Quick Sandbox Flow

Follow these steps to run a checkout transaction end-to-end in the sandbox:
  1. Generate a sandbox token β€” Use https://sandbox.nomba.com/v1/auth/token/issue with your test clientId and clientSecret
  2. Create a checkout order β€” POST https://sandbox.nomba.com/v1/checkout/order with your sandbox token
  3. Open the checkout link β€” Load the checkoutLink from the response in a browser
  4. Enter the test card β€” Use the card number, CVV, and expiry date from the table above
  5. Enter the test OTP β€” Use 9999 for a successful transaction
  6. Verify the transaction β€” Use the transactionRef from the webhook or the orderReference you provided
For a detailed walkthrough with request/response examples, see Sandbox Testing.

Fetch Sandbox Checkout Transactions

You can retrieve the details of a specific transaction performed in the sandbox environment by sending a POST request with the transaction reference. This is useful for testing how your system handles different transaction outcomes (e.g., success, failure, pending).