EdfaPay Logo

Security Best Practices

Follow these security guidelines to ensure your integration is secure and compliant with payment industry standards.

Overview

Credential Security

Never hardcode credentials

Environment Separation

Isolate dev and production

PIN Protection

Enable PIN pad shuffling

Location Validation

Detect mocked locations

Session Management

Handle expiry gracefully

Data Protection

Never log sensitive data

Credential Management

Security Risk

Hardcoded credentials can be extracted from APK files. Always use secure storage mechanisms.

Bad Practice

Loading...

Good Practice

Loading...

Environment Separation

Always use separate environments for development and production:

Loading...

PIN Pad Security

Shuffle the PIN pad layout to prevent shoulder-surfing attacks:

Loading...

Location Validation

Detect and block transactions from mocked/fake locations:

Loading...

Session Security

Implement proper session expiry handling and secure logging:

Loading...

Production Checklist

CheckStatus
Remove hardcoded credentialsRequired
Set environment to PRODUCTIONRequired
Disable debug logging (enableLogs = false)Recommended
Enable PIN shuffle for high-securityRecommended
Implement location validationRecommended
Handle session expiry gracefullyRequired
Test with real cards in SANDBOX firstRequired

Network Security

  • The SDK uses HTTPS for all communications
  • Certificate pinning is implemented internally
  • Ensure android:usesCleartextTraffic="false" in production