EdfaPay Logo

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.

ValueEffectUse Case
0.5fHalf speed (slower)Dramatic emphasis, demos
1.0fNormal speedStandard usage (default)
1.5f50% fasterQuicker feedback
2.0fDouble speedDevelopment/testing
3.0fTriple speedSnappy, minimal feel
Loading...

Environment Configuration

Use the appropriate environment for your deployment stage. Always test with SANDBOX before going live.

EnvironmentDescriptionUse For
Env.SANDBOXTest environmentDevelopment & testing
Env.PRODUCTIONLive environmentReal transactions
Env.DEMODemo environmentDemonstrations & 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.