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.
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 (compile error); React Native keeps buyNowPayLater() and checkoutLinkApi() as deprecated aliases that forward to invoicePayment().
| Deprecated Item | Replacement | Notes |
|---|---|---|
| buyNowPayLater() | invoicePayment() | Removed in Flutter; deprecated alias in React Native. |
| checkoutLinkApi() | invoiceRefund() | Removed in 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 | Lowercase values: tamara, tabby, checkout, contactless, unknown. Use PaymentMethod.from(String) to map native names. |
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
The following callback typealiases have been standardized with consistent naming conventions.
| 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.