Demo provider
Provider: demo
A special test provider that lets you complete the entire verification flow without integrating with real providers such as mObywatel or banks. The session waits for manual approval or rejection in the administration panel.
How it works
- The customer opens
verification_urland sees a "Waiting for approval" screen - You, as the administrator, open the DPay Web EID panel and manually approve or reject the session
- The HUB sets the status to
completed, with averifiedorrejectedresult - A
verification.completedorverification.failedwebhook is sent to your endpoint
/api/v1/verificationsCreate a Demo session: manual approval in the panel and test result scenarios.Full contract in the API Reference
What is it for?
- End-to-end tests of the entire integration pipeline, from session creation to webhook handling
- Client demonstrations without real identity verification
- Testing different result scenarios (
verified,rejected,inconclusive) - Testing error handling with different rejection reasons
- Automated CI/CD tests of a DPay Web EID integration
Availability
The Demo provider is available in both the sandbox and production environments:
| Environment | Availability |
|---|---|
Sandbox (deid_test_xxx) | Yes (always) |
Production (deid_live_xxx) | Yes (for integration testing) |
Use provider: demo cautiously in production and only for testing. Production Demo sessions are not billed, but they appear in the panel as real records.
Session creation example
curl -X POST https://hub.snd.dpay.pl/api/v1/verifications \
-H "Authorization: Bearer deid_test_xxx" \
-H "Content-Type: application/json" \
-d '{
"provider": "demo",
"external_id": "test-e2e-12345",
"redirect_url": "https://twoja-strona.pl/test-redirect",
"locale": "pl"
}'
Approving a session in the panel
- Sign in to the DPay Web EID panel at hub.dpay.pl/admin
- Go to Verification sessions
- Find the session by its
external_idor UUID - Click Approve or Reject
- Select the result status:
verified,rejectedorinconclusive - Optionally fill
verified_datawith mock data - Save the session; the HUB sends a webhook to the configured endpoints
Controlled test results
By selecting different result status combinations in the panel, you can test the corresponding integration behavior:
| Test | Session status | Result status | What it tests |
|---|---|---|---|
| Happy path | completed | verified | Successful customer onboarding |
| Rejection | completed | rejected | Handling a verification rejection |
| Inconclusive | completed | inconclusive | Flagging a case for manual review |
| Technical error | failed | (none) | Handling infrastructure errors |
Pool mode with Demo
You can add demo to the provider list in pool mode to let testers bypass real providers in a test environment:
{
"mode": "pool",
"providers": ["bank_transfer", "mobywatel", "demo"]
}
Never add demo to pool mode in production. End users must not be able to select a fake verification method.