SplitPaymentGateway class abstract

Abstract gateway for split payments.

Extends PaymentGateway following the same extension pattern used by CashPaymentsGateway, QRPaymentGateway, and SoftPOSPaymentGateway.

The concrete implementation lives in the split payments package (littlefish_payments_split) and manages the entire split payment lifecycle internally:

  • Shows ReconciliationScreen
  • Handles Add Payment → KeypadPage → PayPage navigation
  • For each payment leg, calls back into PaymentManager.processPurchase() with the actual payment type (cash, card, etc.)
  • Returns a single cumulative PaymentResult when the session ends
Inheritance

Constructors

SplitPaymentGateway(String originatingPackageName)

Properties

authService → AuthService
no setterinherited
configService → ConfigService
no setterinherited
configurationKey String
no setterinherited
core ↔ LittleFishCore
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isReady bool
no setterinherited
isUserAuthenticated bool
no setterinherited
logger → LoggerService
no setterinherited
originatingPackageName String
getter/setter pairinherited
provider String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings PaymentProvider?
getter/setter pairinherited

Methods

authenticate(String businessId) Future<bool>
inherited
balanceEnquiry({required String businessId, required String merchantId, required String transactionId, required String reference}) Future<BalanceInquiryResult>
inherited
canPerformAction(PaymentGatewayAction action) bool
inherited
closeBatch(String businessId, String merchantId, {String batchId = ''}) Future<SettlementResult>
inherited
deauthenticate() Future<bool>
inherited
deRegisterTerminal({required String merchantId, required LinkedAccount? linkedAccount}) Future<bool>
inherited
dispose() Future<void>
inherited
enrollMerchant({required BusinessProfile profile, required String terminalId}) Future<MerchantEnrolData>
inherited
enrolTerminal({required String merchantId, required LinkedAccount? linkedAccount}) Future<TerminalEnrolData>
inherited
generateQRCode({required String businessId, required String transactionId, required String merchantId, required Decimal amount, required String isoCurrencyCode, required String qrCodeProvider, String shortCurrencyCode = '', String reference = '', TransactionType transactionType = TransactionType.purchase}) Future<PaymentResult>
inherited
generateTransactionId(String businessId, PaymentGatewayAction action) String
inherited
getBatchNumber(String businessId) Future<String>
inherited
getSupportedActions() List<PaymentGatewayAction>
inherited
getSupportedPaymentMethods(String businessId) Future<List<String>>
inherited
getTerminalInfo(String businessId) Future<TerminalData>
inherited
getToken(String id) Future<String>
inherited
getTransactionInfo(String businessId, String transactionId) Future<PaymentResult>
inherited
initialise({PaymentProvider? settings}) Future<void>
inherited
isDeviceEnrolled(String deviceId) Future<bool>
inherited
isMerchantEnrolled(String merchantId) Future<bool>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printBatchReport({required String businessId, required String transactionId, required BatchPrintOption printOption, String batchId = ''}) Future<PaymentPrintResult>
inherited
printPaymentReceipt({required String businessId, required String transactionId, required ReceiptPrintOption printOption, String receiptNo = ''}) Future<PaymentPrintResult>
inherited
processCashback({required String businessId, required String merchantId, required Decimal amount, required String isoCurrencyCode, required String transactionId, required String reference, bool disableReceiptPrinting = false, String expiry = '', String cvv = '000', String blockedBins = '', String pan = ''}) Future<PaymentResult>
inherited
processPurchase({required String businessId, required String merchantId, required Decimal amount, required String isoCurrencyCode, required String transactionId, required String reference, bool disableReceiptPrinting = false, String expiry = '', String cvv = '000', String blockedBins = '', String pan = '', Map<String, dynamic>? additionalInfo}) Future<PaymentResult>
inherited
processPurchaseWithCash({required String businessId, required String merchantId, required Decimal amount, required Decimal cashAmount, required String isoCurrencyCode, required String transactionId, required String reference, bool disableReceiptPrinting = false, String expiry = '', String cvv = '000', String blockedBins = '', String pan = '', Map<String, dynamic>? additionalInfo}) Future<PaymentResult>
inherited
processRefundByAmount(String businessId, String merchantId, Decimal amount, String reference, String isoCurrencyCode, {String paymentMethod = '', bool disableReceiptPrinting = false}) Future<PaymentResult>
inherited
processRefundByTransactionId(String businessId, String merchantId, String originalTransactionId, String reference, {String paymentMethod = '', bool disableReceiptPrinting = false}) Future<PaymentResult>
inherited
processReversal({required String businessId, required String merchantId, required String transactionId, required String uti, bool disableCashierLogin = false, bool disableReceiptPrinting = false}) Future<PaymentResult>
inherited
processTT3({required String businessId, required String merchantId, required String accountNumber, required String contractReference, required String debtorId, required String fromAccountType, required String toAccountType, required Decimal amount, bool disableCashierLogin = false, bool disableReceiptPrinting = false}) Future<PaymentResult>
inherited
processWithdrawByAmount(Decimal amount, String reference, String businessId, String merchantId, {String isoCurrencyCode = '', bool disableReceiptPrinting = false}) Future<PaymentResult>
inherited
setIsReady(bool value) → void
inherited
setProviderSettings({LinkedAccount? linkedAccount, ProviderTheme? theme, BuildContext? context}) Future<void>
inherited
toString() String
A string representation of this object.
inherited
validateIsReady(String action) bool
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited