Testing

Use the Felloh sandbox environment to test your integration without processing real payments.

The sandbox mirrors the production API but no real money is moved. All test transactions are free and can be created, refunded, and reversed without consequence.


Sandbox environment

The sandbox API is available at https://sandbox.felloh.com. Generate sandbox API keys from the Felloh Sandbox Dashboard and use them exactly as you would production keys.


Test card numbers

Use the following card numbers in the sandbox to simulate different payment scenarios. These cards work with payment links, ecommerce sessions, and any card-based payment flow.

For all test cards:

  • Expiry date: Any future date (e.g. 12/34)
  • CVC: Any 3 digits for Visa and Mastercard, any 4 digits for American Express
  • Cardholder name: Any name
  • Address: Any valid address

Successful payments

These cards simulate a successful payment.

BrandNumberType
Visa4242 4242 4242 4242Credit
Visa4000 0566 5566 5556Debit
Mastercard5555 5555 5555 4444Credit
Mastercard5200 8282 8282 8210Debit
Mastercard5105 1051 0510 5100Prepaid
American Express3782 822463 10005Credit
American Express3714 496353 98431Credit

Declined payments

These cards simulate specific decline scenarios. Use them to test your error handling.

BrandNumberDecline reason
Visa4000 0000 0000 0002Generic decline
Visa4000 0000 0000 9995Insufficient funds
Visa4000 0000 0000 9987Lost card
Visa4000 0000 0000 9979Stolen card
Visa4000 0000 0000 0069Expired card
Visa4000 0000 0000 0127Incorrect CVC
Visa4000 0000 0000 0119Processing error
Visa4000 0000 0000 6975Card velocity exceeded

Test amounts

Certain amounts can also trigger specific behaviours in the sandbox:

Amount (GBX)Behaviour
Any valid amountSuccessful payment
0Validation error — amount must be greater than zero

Testing workflows

Payment links

  1. Create a payment link via the API or MCP server
  2. Open the returned URL in a browser
  3. Enter a test card number from above
  4. Complete the payment and verify the transaction appears in your dashboard

Scheduled payments

  1. Create a booking and collect an initial payment using a test card
  2. Ensure card tokenisation is enabled on the payment
  3. Retrieve available tokens on the booking
  4. Create a scheduled payment using the token
  5. The payment will execute on the scheduled date in sandbox (or can be triggered manually)

Refunds

  1. Complete a test transaction using a successful test card
  2. Initiate a refund via the API or MCP server
  3. Authorise or decline the refund
  4. Verify the refund status updates correctly

Webhooks

Test webhooks locally by exposing a local endpoint using a tunnelling tool such as ngrok:

Terminal

ngrok http 4242

Then configure the ngrok URL as your webhook endpoint in the Felloh Dashboard.


Going live

When you're ready to move to production:

  1. Switch your base URL from https://sandbox.felloh.com to https://api.felloh.com
  2. Replace your API keys with production keys from the dashboard
  3. Remove all test card numbers from your codebase
  4. Verify webhook endpoints are configured for production
  5. Test a real transaction with a small amount to confirm everything works end-to-end