SaleByCardManualCubit class
- Inheritance
-
- Mixed-in types
-
- Implementers
Methods
-
addError(Object error, [StackTrace? stackTrace])
→ void
-
Reports an
error which triggers onError with an optional StackTrace.
inherited
-
clearFormFields()
→ void
-
Clears all form fields to ensure a clean state when the SDK is reopened
-
close()
→ Future<void>
-
Closes the instance.
This method should be called when the instance is no longer needed.
Once
close is called, the instance can no longer be used.
inherited
-
emit(ICubitState<PurchaseResponse> state)
→ void
-
Updates the
state to the provided state.
emit does nothing if the state being emitted
is equal to the current state.
inherited
-
getCustomerTokens(BuildContext context, void setContext(void (BuildContext)), OnPayCallback onPay, EventCallback? log, void customerCallback(String?)?, void onResponse(String?)?, PaymentArguments args, String? customerId)
→ Future<void>
-
-
initial()
→ void
-
-
mapNetworkState(NetworkState<PurchaseResponse> networkState)
→ ICubitState<PurchaseResponse>
-
Maps a NetworkState to an ICubitState for UI consumption.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(Change<ICubitState<PurchaseResponse>> change)
→ void
-
Handles automatic UI updates based on state changes.
inherited
-
onError(Object error, StackTrace stackTrace)
→ void
-
Called whenever an
error occurs and notifies BlocObserver.onError.
inherited
-
payWithToken(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, BuildContext? context, {bool isTokenized = false, String? customerId, String? customerTokenId, String? cvv, void dismissLoaderTrigger(void ())?})
→ Future<PurchaseData?>
-
-
purchase(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, BuildContext? context)
→ Future<PurchaseData?>
-
-
purchaseOtpStepOne(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, BuildContext? context, {bool isTokenized = false, void dismissLoaderTrigger(void ())?})
→ Future<PurchaseData?>
-
-
purchaseOtpStepTwo(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, String otp, String originTransactionId, bool isTokenized)
→ Future<Either<Map<String, dynamic>, PurchaseData>>
-
-
showLoader()
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited