SDK Settings
Configure SDK behavior including logging, animation speed, and environment settings.
Overview
The SDK provides several global settings that can be configured before or after initialization.
Debug Logging
Enable verbose logging during development to debug SDK operations.
Loading...Production Warning
Always disable logging in production builds to prevent sensitive information from being logged. Use BuildConfig.DEBUG to toggle automatically.
Log Tag Reference
| Tag | Description |
|---|---|
| ***EdfaPay*** | General SDK logs |
| EdfaPay-NFC | NFC/card reading operations |
| EdfaPay-Network | API calls and responses |
| EdfaPay-EMV | EMV kernel processing |
| EdfaPay-UI | UI state changes |
Animation Speed
Control the speed of all SDK animations globally.
Loading...| Value | Effect | Use Case |
|---|---|---|
| 0.5f | Half speed (slower) | Dramatic emphasis, demos |
| 1.0f | Normal speed | Standard usage (default) |
| 1.5f | 50% faster | Quicker feedback |
| 2.0f | Double speed | Development/testing |
| 3.0f | Triple speed | Snappy, minimal feel |
Environment Configuration
Configure the SDK environment for development, testing, or production.
Loading...| Environment | Description | Use For |
|---|---|---|
| Env.SANDBOX | Test environment | Development & testing |
| Env.PRODUCTION | Live environment | Real transactions |
| Env.DEMO | Demo environment | Demonstrations & sales |
Automatic Environment Switching
Use BuildConfig to automatically switch environments based on build type.
Loading...Best Practices
Production Configuration
Loading...Debug Configuration
Loading...Configuration Checklist
- Disable logging in production:
EdfaPayPlugin.enableLogs = BuildConfig.DEBUG - Use environment-specific credentials: Never use production tokens in development
- Visual environment indicator: Use different primary colors for sandbox vs production
- Test with real cards: Always test in sandbox before going live
On this page
Downloads
Coming SoonSample apps, release bundles, and more content will be available here soon.