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.
enableLogs
Enable/disable debug logging output
animationSpeedX
Control global animation speed multiplier
Debug Logging
Enable verbose logs to help debug integration issues. Filter logcat by tag EdfaPay to see SDK output. Available log tags: • 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
Loading...Production Warning
Always disable logging in production builds to prevent sensitive information from being logged. Use BuildConfig.DEBUG to toggle automatically.
Animation Speed
Globally control the speed of all SDK animations using animationSpeedX.
| 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 |
Loading...Environment Configuration
Use the appropriate environment for your deployment stage. Always test with SANDBOX before going live.
| Environment | Description | Use For |
|---|---|---|
| Env.SANDBOX | Test environment | Development & testing |
| Env.PRODUCTION | Live environment | Real transactions |
| Env.DEMO | Demo environment | Demonstrations & sales |
Loading...Best Practices
Follow these recommendations to ensure your integration is production-ready and secure.
Disable logs in production
Use BuildConfig.DEBUG or equivalent to gate logging.
Set animation speed before initialization
Configure animationSpeedX before calling initiate() for consistent behavior.
Use SANDBOX for development
Always test against SANDBOX environment to avoid processing real transactions.
Use environment variables for credentials
Never hardcode auth tokens. Use BuildConfig fields or secure storage.
Production Warning
Always disable logs in production builds. Set enableLogs = false or tie it to BuildConfig.DEBUG to avoid exposing sensitive data.
On this page
Downloads
Coming SoonSample apps, release bundles, and more content will be available here soon.