Skip to main content
We provide a testing environment that allows merchants and partners to validate their integration to the Paymend API without processing real payments. The sandbox is designed to validate:
  • Request structure and mandatory fields
  • Authentication handling
  • Core payment flows (create, capture, refund, void, query)
  • Basic success and failure scenarios
  • Asynchronous responses
Responses are simulated and limited to predefined behaviors. The sandbox keeps payment state, and each payment gets its own paymentId: reference it as a path parameter in subsequent operations (capture, refund, void or query).

Sandbox setup

  • Base URL and credentials: use https://api.sandbox.paymend.com with your sandbox token; see Authentication and API environments, which also cover dashboard access.
  • Store: populate source.storeId with store_sandbox on every sandbox request.
The sandbox ignores refundAmount and always refunds the full amount, so partial refunds can only be tested in production.

Asynchronous payments

Supporting asynchronous responses is required for every Paymend integration (see Recover payments), so test your PENDING handling, and your webhook handling, in the sandbox before going live. In sandbox, PENDING payments will resolve automatically. These will transition to a terminal state for payment creation - AUTHORIZED, CAPTURED or FAILED - after 30 minutes. This transition triggers the payment status update webhook. Webhooks are set up in sandbox on request. Ask your Paymend sales representative to configure them for your sandbox endpoint.

Test cards

Never send real card numbers to the sandbox, whether encrypted or not. Use only the test values below.
When creating payments in the sandbox, specific test card numbers determine simulated outcomes.

CARD payment method type

The table below shows which card number and brand values can be passed in the paymentMethod object during payment creation to receive different status and failure object values in the response. *Whether you receive AUTHORIZED or CAPTURED will depend on the value passed in the captureNow field. Any 3-4 digit value is accepted for card.cvv.

ENCRYPTED_CARD payment method type

The table below shows which encrypted card value and brand values can be passed in the paymentMethod object during payment creation to receive different status and failure object values in the response. *Whether you receive AUTHORIZED or CAPTURED will depend on the value passed in the captureNow field.

Request examples

You can find example requests for payment creation and payment management by following the links below:

Next Steps

Once your integration is working smoothly in sandbox:
  • Confirm your integration meets the integration checklist, including PENDING and webhook handling.
  • Request production credentials from Paymend.
  • Update your base URL to the production endpoint: https://api.prod.paymend.com.
  • Perform live transaction testing as needed, including partial refunds.