Testing and Going Live

To ensure a seamless integration, DECTA provides sandbox environments to test your payment flows without transferring real funds.

Important Note on Sandbox Testing Models.

DECTA is currently transitioning to an upgraded interactive Sandbox environment. During this migration phase, two testing frameworks operate side-by-side depending on the payment method:

  • Legacy Sandbox Framework (Card Payments): Uses pre-configured test card numbers, fixed credentials, and test MIDs (0000000 or 0000001) under a Live website.
  • New Sandbox Framework (Interactive Logic): Uses dedicated sandbox terminals under a Test website paired with interactive mockup tools and simulated processing rules.

Legacy Sandbox Framework (Card Payments)

Sandbox Integration Setup

  1. Request your account manager to set up a card payment test terminal under your Live website with test MIDs (0000000 or 0000001).
  2. Generate your Gateway API Key in the DECTA Portal:
    • Key environment: Select Test environment.
    • Key version: Select v0.6.
    • Website: Select your Live website containing the test card accounts/MIDs.
    • Default terminal: Select the test card terminal (0000000 or 0000001).
  3. Use the generated test API Key as a Bearer token in your Gateway API requests to run simulated test card transactions.
  4. (Optional) Configure webhooks to receive real-time asynchronous test events.

Sandbox Test Scenarios

Use the following test credit card details and CVVs to simulate specific authorization outcomes. These transactions are simulated and will not move actual funds.

ScenarioCard NumberCVVResult
DMS4111 1111 1111 1111
or
5105 1051 0510 5100
000
  • Status = Paid
  • Processing_id = 000000000
  • 3D result = Non 3DS
  • Processing code = 000 (Approved)
DMS4111 1111 1111 1111
or
5105 1051 0510 5100
300
  • Status = Paid
  • Processing_id = 000000300
  • 3DS check succeeded, continue transaction
  • Processing code = 000 (Approved)
SMS4111 1111 1111 1111
or
5105 1051 0510 5100
010
  • Status = Paid
  • Processing_id = 000000010
  • 3DS check succeeded, continue transaction
  • Processing code = 000 (Approved)
DMS4111 1111 1111 1111
or
5105 1051 0510 5100
301
  • Status = Paid
  • Processing_id = 000000301
  • 3D result = 3DS check attempted, continue transaction
  • Processing code = 000 (Approved)
DMS4111 1111 1111 1111
or
5105 1051 0510 5100
302
  • Status = Paid
  • Processing_id = 000000302
  • 3D result = Not enrolled in 3DS check, continue transaction
  • Processing code = 000 (Approved)
DMS4111 1111 1111 1111
or
5105 1051 0510 5100
001
  • Status = Failed
  • Processing_id = 000000001
  • Processing code = 116 (Decline, not sufficient funds)
SMS4111 1111 1111 1111
or
5105 1051 0510 5100
011
  • Status = Failed
  • Processing_id = 000000011
  • Processing code = 116 (Decline, not sufficient funds)
DMS4111 1111 1111 1111
or
5105 1051 0510 5100
201
  • Status = Failed
  • Processing_id = 000000201
  • 3D result = 3DS check failed, do not continue transaction
Recurrings (SMS)4111 1111 1111 1111-
  • Status = Paid
  • processing_id = 000000008
  • Processing code = 000 (Approved)
Recurrings (DMS)4111 1111 1111 1111-
  • Status = Paid
  • processing_id = 000000024
  • Processing code = 000 (Approved)
Recurrings (SMS, DMS)5105 1051 0510 5100-
  • Status = Failed
  • processing_id = None
  • Processing code = 116 (Decline, not sufficient funds)
Reversal / Refund (including partial) DMS--
  • Status = Paid
  • Processing_id = 000000000
  • Processing code = 000 (Approved)
Reversal / Refund (including partial) SMS--
  • Status = Paid
  • Processing_id = 000000010
  • Processing code = 000 (Approved)
Reversal / Refund (including partial)
For paid orders
4111 1111 1111 1111028
  • Status = Failed
  • Processing_id = 000000029
  • Processing code = 911 (Decline reason message: card issuer timed out)
AUTH4111 1111 1111 1111
or
5105 1051 0510 5100
018
  • Status = Paid
  • Processing_id = 000000018
  • Processing code = 000 (Approved)
AUTH4111 1111 1111 1111
or
5105 1051 0510 5100
019
  • Status = Failed
  • Processing_id = 000000019
  • Processing code = 120 (Decline, transaction not permitted to terminal)
Wallet Funding4111 1111 1111 1111
or
5105 1051 0510 5100
014
  • Status = Paid
  • Processing_id = 000000014
  • Processing code = 000 (Approved)
Wallet Funding4111 1111 1111 1111
or
5105 1051 0510 5100
015
  • Status = Failed
  • Processing_id = 000000015
  • Processing code = 116 (Decline, not sufficient funds)
Wallet Purchase4111 1111 1111 1111
or
5105 1051 0510 5100
016
  • Status = Paid
  • Processing_id = 000000016
  • Processing code = 000 (Approved)
Wallet Purchase4111 1111 1111 1111
or
5105 1051 0510 5100
017
  • Status = Failed
  • Processing_id = 000000017
  • Processing code = 116 (Decline, not sufficient funds)
MOTO4111 1111 1111 1111-
  • Status = Paid
  • Processing_id = 000000012
  • Processing code = 000 (Approved)
MOTO5105 1051 0510 5100-
  • Status = Failed
  • processing_id = 000000012
  • Processing code = 116 (Decline, not sufficient funds)
P2P, B2P, A2A, OG4111 1111 1111 1111-
  • Status = Paid
  • processing_id=000000002
P2P, B2P, A2A, OG5105 1051 0510 5100-
  • Status = Failed
  • processing_id=000000003
Purchase Paid Non 3DS4111 1111 1111 1111
or
5105 1051 0510 5100
000
  • Status = Paid
  • Processing_id = 000000000
  • 3D result = Non 3DS
  • Processing code = 000 (Approved)
Purchase 3DS Authenticated4111 1111 1111 1111
or
5105 1051 0510 5100
300 / 010
  • Status = Paid
  • Processing_id = 000000300/ 000000010
  • 3DS check succeeded, continue transaction
  • Processing code = 000 (Approved)
AUTH NAME4111 1111 1111 1111-
  • Status = Paid
  • Processing_id=000000004
AUTH NAME4242 4242 4242 4242-
  • Status = Paid
  • Processing_id=000000005

New Sandbox Framework (Interactive Logic)

Currently supported only by Blik. Additional alternative payment methods and card payment flows will be added to this framework on an ongoing basis.

Sandbox Integration Setup

  1. Request your account manager to set up a sandbox test terminal for the payment method under a Test website.
  2. Generate your Gateway API Key in the DECTA Portal:
    • Key environment: Select Test environment.
    • Key version: Select v0.6.
    • Website: Select your assigned Test website.
    • Default terminal: Select the sandbox terminal created under the Test website.
  3. Use the sandbox API Key as a Bearer token in Gateway API requests.
  4. (Optional) Configure webhooks to receive real-time asynchronous test events.

Interactive Payment Flows & Testing Scenarios

DECTA provides simulated authorization tools within the Sandbox environment to perform end-to-end integration testing safely without moving funds or relying on external third-party production providers.

Redirect Flows (Mockup Page)

For payment methods utilizing a user redirect step (such as Blik redirect flows):

  1. Create an order by passing the required method parameters via the Gateway API.
  2. Redirect the payer to the mockup URL returned by the Gateway API:
    • Full Page Integration: Redirect to full_page_url.
    • Host2Host Integration: Redirect to redirect_url.
  3. On the interactive Mockup Page, select the desired outcome scenario:
    • AUTHENTICATE: Simulates an approved transaction. The status updates to SUCCESS, and a success callback is sent.
    • REJECT: Simulates a declined transaction. The status updates to FAILED and a decline callback is sent.
  4. Abandonment Sync: If the page is abandoned or closed without a selection, the payment remains IN_PROGRESS until internal synchronization automatically moves the status to FAILED and dispatches the callback.

Testing Sandbox Refunds

For methods supporting refunds within the new sandbox framework, refund requests function identically to production workflows. Simulated outcome triggers are determined by the requested refund amount:

  • Simulate Failed Refund: Submit a refund request with an amount ending in 4 (e.g., 1.54, 200.04).
  • Simulate Successful Refund: Submit any other refund amount.

Going Live

The testing phase ends at your request, after which you will be provided with real terminals with the appropriate settings and permissions.