Please try searching something.
Testing and Going Live
Testing
The sandbox lets you test your integration end to end without moving money. Payments are simulated with test cards: the card number and CVV you send decide the result.
Set up the sandbox
- Ask your account manager to set up a card test terminal under your Live website, with test MID
0000000or0000001. - Generate a Gateway API key in the DECTA Portal with these settings:
- Key environment: Test
- Key version: v0.6
- Website: your Live website that holds the card test terminal
- Default terminal: the card test terminal (
0000000or0000001)
- Send this test key as a Bearer token in your Gateway API requests. Card transactions made with it are simulated.
- Optional: set up webhooks to receive test events as they happen.
Test cards
| Card number | Scheme | Used for |
|---|---|---|
4111 1111 1111 1111 | Visa | All scenarios. Default card for successful results where no CVV is sent. |
5105 1051 0510 5100 | Mastercard | All scenarios. Default card for failed results where no CVV is sent. |
4242 4242 4242 4242 | Visa | AUTH NAME only. |
How the result is chosen:
- Flows with a CVV (purchase, AUTH, wallet): the CVV decides the result. Both main cards behave the same.
- Flows without a CVV (MOTO, P2P/B2P/A2A/OG, recurring and automatic): the card number decides the result.
4111…succeeds,5105…fails. - One-click:
4111…with CVV022succeeds.
In the tables below, any test card means 4111 1111 1111 1111 or 5105 1051 0510 5100.
Purchase (SMS)
SMS is the default payment type. The CVV decides the result. Use CVV 010 for a successful SMS payment. CVV 000 is for DMS only.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
| Any test card | 010 | Paid | 000000010 | 000 Approved | 3DS authenticated |
| Any test card | 011 | Failed | 000000011 | 116 Not sufficient funds | — |
Purchase (DMS)
The CVV decides the result and the 3-D Secure outcome.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
| Any test card | 000 | Paid | 000000000 | 000 Approved | No 3DS |
| Any test card | 300 | Paid | 000000300 | 000 Approved | 3DS authenticated |
| Any test card | 301 | Paid | 000000301 | 000 Approved | 3DS attempted |
| Any test card | 302 | Paid | 000000302 | 000 Approved | Card not enrolled in 3DS |
| Any test card | 001 | Failed | 000000001 | 116 Not sufficient funds | — |
| Any test card | 201 | Failed | 000000201 | — | 3DS failed |
Authorization (AUTH)
The CVV decides the result.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
| Any test card | 018 | Paid | 000000018 | 000 Approved | — |
| Any test card | 019 | Failed | 000000019 | 120 Transaction not permitted to terminal | — |
Recurring and one-click
The sandbox supports only cards saved on the DECTA side. Cards saved on your side (saved_by_merchant) cannot be tested in the sandbox.
- One-click (CIT): the payer is present. The checkout page shows the saved card details pre-filled, and the payer enters the CVV.
- Recurring and automatic (MIT): the payer is not present and no CVV is sent. The card number decides the result.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
4111 1111 1111 1111 | 022 | Paid | 000000022 | 000 Approved | One-click |
4111 1111 1111 1111 | — | Paid | 000000022 | 000 Approved | Recurring or automatic |
5105 1051 0510 5100 | — | Failed | 000000023 | 116 Not sufficient funds | Recurring or automatic |
To test:
- Save the card on the DECTA side: make a first payment with the test card and a successful CVV, for example
000. Check that it is Paid. - Create a new order with
POST /orders/, passingoriginal_client(orrecurring_card) anduse_scenario. - For one-click (
use_scenario:one-click): open the checkout page. The card details are pre-filled. Enter CVV022. - For recurring or automatic (
use_scenario:recurringorautomatic): sendPOST /orders/{order_id}/charge/without a request body. No CVV is sent. - Check the result against the table.
Reversal and refund
Full and partial reversals and refunds succeed on any paid order. To test a failure, pay the original order with CVV 028. The CVV column shows the CVV used for the original order.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
| Any test card | — | Paid | 000000000 | 000 Approved | Original order paid via DMS |
| Any test card | — | Paid | 000000010 | 000 Approved | Original order paid via SMS |
4111 1111 1111 1111 | 028 | Failed | 000000029 | 911 Card issuer timed out | — |
Wallet funding
The CVV decides the result.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
| Any test card | 014 | Paid | 000000014 | 000 Approved | — |
| Any test card | 015 | Failed | 000000015 | 116 Not sufficient funds | — |
Wallet purchase
The CVV decides the result.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
| Any test card | 016 | Paid | 000000016 | 000 Approved | — |
| Any test card | 017 | Failed | 000000017 | 116 Not sufficient funds | — |
MOTO
No CVV is sent. The card number decides the result.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
4111 1111 1111 1111 | — | Paid | 000000012 | 000 Approved | — |
5105 1051 0510 5100 | — | Failed | 000000012 | 116 Not sufficient funds | — |
P2P, B2P, A2A and OG
No CVV is sent. The card number decides the result.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
4111 1111 1111 1111 | — | Paid | 000000002 | — | — |
5105 1051 0510 5100 | — | Failed | 000000003 | — | — |
AUTH NAME
No CVV is sent. Both cards return a successful result.
| Card | CVV | Status | processing_id | Processing code | Notes |
|---|---|---|---|---|---|
4111 1111 1111 1111 | — | Paid | 000000004 | — | — |
4242 4242 4242 4242 | — | Paid | 000000005 | — | — |
Processing codes
| Code | Meaning |
|---|---|
000 | Approved |
116 | Decline, not sufficient funds |
120 | Decline, transaction not permitted to terminal |
911 | Decline, card issuer timed out |
New Sandbox Framework (Interactive Logic)
Sandbox Integration Setup
- Request your account manager to set up a sandbox test terminal for the payment method under a Test website.
- 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.
- Use the sandbox API Key as a Bearer token in Gateway API requests.
- (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:
- Create an order by passing the required method parameters via the Gateway API.
- 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.
- Full Page Integration: Redirect to
- 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.
- 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.