Testing
Sandbox Environment
| Base URL | https://api.dev.votesess.com |
| Test App | https://dev.app.uniqpon.com |
Setup
- Obtain your sandbox API key(s) -- one per terminal. Contact the Cheers team for provisioning.
- Configure your POS terminals with the respective
X-API-Keyvalues.
A single terminal is sufficient for testing.
Buying Test Credits
- Go to the test credit purchase page
- Register with an email address (registration = login on the test platform)
- Purchase credits using the Barion test card:
4444 8888 8888 5559 - Verify credits at Profile > Credits
Generating a Transaction Key
- Log in to the test app
- Go to Profile > QR Code
- Click the QR code button to generate a dynamic QR code
- Scan this QR code to extract the
X-Transaction-Key
Test Flow
1. Preview
Call the preview endpoint with test items:
curl -X POST https://api.dev.votesess.com/v3/integrations/credit-transactions/preview \
-H "X-API-Key: YOUR_SANDBOX_API_KEY" \
-H "X-Transaction-Key: SCANNED_QR_VALUE" \
-H "X-Idempotency-Key: UNIQUE_KEY_PER_REQUEST" \
-H "Content-Type: application/json" \
-d '{
"paymentType": "SPLIT_PAYMENT",
"currencyCode": "HUF",
"items": [
{
"productId": "test-product-001",
"quantity": 2,
"unitPrice": 500,
"name": "Test Product",
"vat": 27
}
]
}'
2. Finalize
Call the finalize endpoint with the transactionId from the preview response.
3. Verify
Check the user's credit balance in the test app to confirm credits were deducted.
4. Refund
Call the refund endpoint and verify credits are restored.
Production Testing
Once sandbox testing is complete, repeat the flow against the production environment:
| Base URL | https://api.uniqpon.com |
| App | https://cheersapp.io |
Use production API keys and real user accounts for final validation.