Test mode vs live mode
The platform encodes the environment inside the API key itself.
There is no separate sandbox.* host or --test flag.
Key prefixes
| Prefix | Mode | Where to use |
|---|---|---|
dv_sk_test_… | test | Local dev, CI, integration tests, demos |
dv_sk_live_… | live | Production traffic |
dv_tok_test_… | test | Returned by Sessions.Create when called with a dv_sk_test_… |
dv_tok_live_… | live | Returned when called with a dv_sk_live_… |
The SDK parses the prefix at construction time and exposes the mode:
client, _ := ekyc.NewClient(ekyc.Config{APIKey: "dv_sk_test_..."})
client.Mode // "test"
final sdk = EkycSdk(EkycConfig(/* tokenProvider returns dv_tok_test_... */));
sdk.mode // "test" once the first token is fetched