Deprecated APIs
A comprehensive list of deprecated methods, classes, and types in the Soft POS SDK with their modern replacements.
Overview
Modernization Policy
As the SDK evolves, we periodically rename or restructure APIs to improve consistency, clarity, and performance. While these deprecated items remain functional for backward compatibility, we strongly recommend migrating to the suggested replacements in your next update.
Gradle Flavor (Native)Deprecated in v1.0.8
In v1.0.8 the native product flavors were reworked. The sa-edfapay-revamp flavor is deprecated (kept for backward compatibility and still published at 1.0.8) and will be removed in a future release. Migrate to the saEdfapay flavor. Flutter and React Native pin the native dependency internally, so this only affects direct native-Android integrators.
| Deprecated Item | Replacement | Notes |
|---|---|---|
| com.edfapay:sa-edfapay-revamp | com.edfapay:saEdfapay | Same version (1.0.8). Recommended replacement; sa-edfapay-revamp will be removed. |
| (phone-only NFC assumption) | com.edfapay:saEdfapayDspread | New flavor for Dspread external card-reader devices — not a deprecation, but the coordinate to use for that hardware. |
Loading...BNPL → Invoice Payment APIChanged in v1.0.7
In v1.0.7 the BNPL-specific API became the generic invoice payment API. Flutter removed the old names entirely, and native Android no longer has them (compile error); React Native keeps buyNowPayLater() and checkoutLinkApi() as deprecated aliases that forward to invoicePayment().
| Deprecated Item | Replacement | Notes |
|---|---|---|
| buyNowPayLater() | invoicePayment() | Removed in native Android and Flutter; deprecated alias in React Native. |
| checkoutLinkApi() | invoiceRefund() | Removed in native Android and Flutter; deprecated alias in React Native (forwards to invoicePayment()). |
| InvoiceRequest | InvoicePaymentRequest / InvoiceRefundRequest | Split into payment and refund request models (Flutter/native; React Native keeps InvoiceRequest and adds InvoiceRefundRequest). |
| BnplResponse | InvoicePaymentResponse | Renamed (Flutter/native; unchanged in React Native). |
| BnplProvider | PaymentMethod | Flutter: tamara, tabby, checkout, contactless, unknown, and PaymentMethod.from(String) maps native names. React Native: PaymentMethod.TAMARA, TABBY, CHECKOUT, CONTACTLESS, UNKNOWN, and paymentMethodFrom(name). Native Android: TAMARA, TABBY, CHECKOUT, CONTACTLESS. |
Loading...ThemeDeprecated in v1.0.7
| Deprecated Item | Replacement | Notes |
|---|---|---|
| theme().setPoweredByImage() | N/A | No longer effective as of v1.0.7; will be removed in a future release. Remove it from your theme configuration. |
Callback Types
In native Android these callback type names, old and new, are internal; host code passes plain lambdas, so no migration is needed. Flutter and React Native keep their own callback type names (for example OnErrorCallBack in Flutter), unchanged.
| Deprecated Item | Replacement | Notes |
|---|---|---|
| ProcessCompleteCallback | TransactionCompleteCallback | Standardized naming convention. |
| ServerCompletionCallBack | ServerResponseCallback | Renamed for clarity. |
| PluginCallBack | CardProcessingCallback | Clarified purpose. |
| TimeOutCallBack | TimeoutCallback | Fixed casing and standardized. |
| CancelByUserCallBack | CancellationCallback | Standardized naming. |
| OnErrorCallBack | ErrorCallback | Standardized naming. |
Loading...Exceptions & Errors
The error handling system has moved from a mutable Error enum to a type-safe, immutable EdfaError sealed class.
EdfaException Members
| Deprecated Item | Replacement | Notes |
|---|---|---|
| EdfaException.type | EdfaException.error | The new property returns the EdfaError sealed class. |
| Constructor(Error, ...) | Constructor(EdfaError, ...) | Transitioning to the new error model. |
Error Enum (Legacy)
| Deprecated Item | Replacement | Notes |
|---|---|---|
| Error.exception() | EdfaError.exception() | Equivalent functionality in the new model. |
| Error.CUSTOM(message, ...) | EdfaError.custom() | Immutable replacement. |
| Error.CUSTOM(throwable) | EdfaError.from(throwable) | Enhanced error extraction. |
The entire Error enum is deprecated in favor of EdfaError. Many helper methods on this enum have also been replaced.
QR Generator
The QR generation API has been overhauled to provide more flexibility and better performance using vector-based options.
Main Components
| Deprecated Item | Replacement | Notes |
|---|---|---|
| QrOptions | QrCodeDrawable / QrVectorOptions | Modernized vector-based options. |
| QrOptions.Builder | QrVectorOptions.Builder | New builder for vector options. |
| createQrOptions | createQrVectorOptions | DSL method for vector QR codes. |
Deprecated Style Classes
The following QR style classes have been replaced with their QrVector* equivalents: QrLogoShape → QrVectorLogoShape QrBackground → QrVectorBackground QrHighlightingShape → QrVectorHighlightingShape QrLogoPadding → QrVectorLogoPadding QrLogo → QrVectorLogo QrBallShape → QrVectorBallShape QrFrameShape → QrVectorFrameShape QrShape → QrVectorShape QrOffset → QrVectorOffset QrColors → QrVectorColors
Utilities
| Deprecated Item | Replacement | Notes |
|---|---|---|
| HttpLoggingInterceptor.level | N/A | Property access deprecated in favor of internal management. |
On this page
Downloads
Coming SoonSample apps, release bundles, and more content will be available here soon.