Testing on your live account

Run a payment through your real setup, from the link or checkout to your webhook and emails, without charging the card.

What a test payment is

A test payment is a payment on your live account that goes through the full checkout. The card is checked exactly as it is on a real payment, including 3-D Secure with the cardholder's bank, and it is not charged. Nothing is held on the card.

Every page the buyer sees for a test says Test payment, and so do the receipt, the emails and your dashboard. A test never reaches your balance, payouts or statements.

How to start one

Dashboard

Choose the test option when you create a payment link. Every order made from a test link is a test.

API

Send test: true when you create an order (POST /orders), a payment link (POST /payment_links) or a checkout session (POST /checkout/sessions) with your secret key.

Create a test payment link
curl -X POST https://api.inkress.com/api/v1/payment_links \
  -H "Authorization: Bearer $INKRESS_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Checkout test",
    "total": 1500,
    "currency_code": "JMD",
    "test": true
  }'

Only a trusted call can make a test. A test value sent with a publishable or storefront key, or from the buyer's browser, is ignored and the order is live. An order made from a payment link always takes the link's setting.

The test field

These objects carry test: boolean. It is set when the object is created and never changes.

ObjectFieldWhere you see it
OrdertestEvery order read, list entry and order webhook
Checkout sessiontestSession create and show
Payment linktestLink create, read and list
TransactiontestEvery transaction on a test order

Webhook events for a test carry "test": true at the top level of the body and the header X-Inkress-Test-Transaction: true.

A test orders.paid event
{
  "event": "orders.paid",
  "test": true,
  "order": {
    "id": 2345,
    "status": "paid",
    "test": true
  },
  "facilitator": "Inkress"
}

Lists and totals

Tests never appear in balances, payouts, statements or any total or count. Lists leave them out unless you ask:

  • include_test=true includes test records with the live ones.
  • test=true returns only test records.

Only the exact value true turns either on; 1, TRUE or an empty value leave tests out. Reading one record by its id always returns it, with its test field.

Check test before you fulfil

Your own webhook endpoints receive test events, so your integration runs end to end. Before you ship goods, issue tickets or grant access, return early for a test.

Webhook handler
app.post("/webhooks/inkress", (req, res) => {
  const event = req.body;
  const isTest =
    event.test === true || req.get("X-Inkress-Test-Transaction") === "true";

  if (isTest) {
    // Log it, check your flow, but don't fulfil.
    return res.sendStatus(200);
  }

  if (event.event === "orders.paid") {
    fulfil(event.order);
  }
  res.sendStatus(200);
});

What a test can't do

A test is a one-off card payment. A test can't be used for:

  • subscriptions and renewals
  • payments with saved cards
  • payment methods other than a card through Inkress checkout (bank transfer, Lynk, PayPal and others)
  • refunds (cancel a test order instead)
  • booking deposits

Asking for any of them on a test is refused with Test orders support one-off card payments only. A refund of a test order is refused with Test orders cannot be refunded; cancel it instead.

Each business can run up to 25 test payments a day. The next one is refused with Daily limit of 25 test payments reached.

Test payments and sandbox

Sandbox is a separate Inkress environment with its own accounts and test cards; a test payment runs on your live account with a real card that is checked but never charged.

Use sandbox while you build. Use a test payment on your live account when you are ready to check your real setup before taking real money. See Going Live and Webhook Events.