Utility Functions
EdfaPayPlugin.Utils provides helper functions for device identification, location services, secure storage, and UI dialogs. EdfaPayPlugin.Extension provides advanced low-level API access.
Overview
The EdfaPayPlugin.Utils namespace provides helper methods for device identification, location services, secure storage, and UI dialogs.
Device ID
Get unique device identifier for fraud detection and compliance
Location Services
Check and request location permissions; detect GPS mocking
Message Dialog
Show native alert dialogs from the SDK context
Data Storage
Secure key-value storage for SDK data
Device Identification
Get a unique device identifier that is consistent across reinstalls. Optionally scope the ID to a specific merchant.
Loading...Location Services
Check and request location permissions, retrieve the current device location, and detect GPS mocking.
Loading...Location Required
The SDK requires location permission for compliance and fraud detection. Transactions may be rejected if location permission is denied.
Message Dialog
Display a native alert dialog using the SDK's context. Useful for showing payment results or error messages to the user.
Loading...Data Storage
The SDK provides secure key-value storage for persisting SDK-related data between sessions.
| Method | Description |
|---|---|
| getDeviceId(context) | Returns a unique device identifier for the current installation |
| haveLocationPermission(context) | Returns true if location permission is granted |
| requestLocationPermission(activity) | Requests location permission from the user |
| currentLocation | Returns the current device Location object (nullable) |
| showMessageDialog(activity, title, msg, onOk?) | Displays a simple alert dialog with optional OK callback |
Extension API (EdfaPayPlugin.Extension)
Low-level API for advanced integration. Access via EdfaPayPlugin.Extension. Provides custom authentication, OTP, and terminal registration.
Loading...Advanced Use Only
Extension API methods bypass standard initialization flow. Use only if instructed by EdfaPay technical support.
On this page
Downloads
Coming SoonSample apps, release bundles, and more content will be available here soon.