Pay’nUp uses a single endpoint for production and testing:

https://api.paynup.com

We identify if you are making real payments or just tests with the credentials used to generate the token.

The advantage of this approach is that you can configure your merchant exactly what you want for production environment but emulating payments and transactions during the integration. When your integration is ready you only need switch back your merchant to LIVE mode or use LIVE credentials, that’s all, your products and configuration is the same. In the other hand you should be careful, because not everything is emulated, many queries and mutations work with your real data.

The SANDBOX mode is partially isolated from PRODUCTION environment, some data are the same in both environments.

What’s emulated/isolated in SANDBOX

The following operations and data are fully emulated and does not affect production environments when you are working in SANDBOX mode:

  • Submit Transaction: Every time you submit a new transaction in SANDBOX mode a fake transaction is created, no payments or third party service is used at all.
  • Transaction List: Return the list of fake transactions.
  • Merchant Balance: The merchant balance is always 500 in sandbox mode.

Most important operations that may involve third party payments, credit reduction, invoices etc. will always be emulated when use SANDBOX credentials. Operations and data not specified in the above list always use your REAL, LIVE, PRODUCTION data, for example, the list of products, carriers, discounts, partners, customers etc.

How to know if you’re in SANDBOX mode

The easy way to know if your current credentials are in SANDBOX mode or not is using the following query:

query {
  viewer {
    sandbox
  }
}
{
  "data": {
    "viewer": {
      "sandbox": true
    }
  }
}

When you use the Explorer, a message is displayed to advise if you are using SANDBOX or LIVE environment.