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.

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

TagDescription
***EdfaPay***General SDK logs
EdfaPay-NFCNFC/card reading operations
EdfaPay-NetworkAPI calls and responses
EdfaPay-EMVEMV kernel processing
EdfaPay-UIUI state changes

Animation Speed

Control the speed of all SDK animations globally.

Loading...
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

Environment Configuration

Configure the SDK environment for development, testing, or production.

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