Interface IPaymentForm

All Known Implementing Classes:
PaymentForm, PaymentFormCash, PaymentFormCheck, PaymentFormCreditCard, PaymentFormDirect, PaymentFormMixedPOS, PaymentFormOnCredit, WPaymentFormCash, WPaymentFormCheck, WPaymentFormCreditCard, WPaymentFormDirect, WPaymentFormDirectDebit, WPaymentFormDirectDeposit, WPaymentFormMixedPOS, WPaymentFormOnCredit

public interface IPaymentForm
Payment form interface for different payment mode (cash, credit card, etc)
  • Method Details

    • dynInit

      boolean dynInit() throws Exception
      Dynamic initialization
      Returns:
      false if there are errors, true otherwise
      Throws:
      Exception
    • loadData

      void loadData()
      Load payment and related transaction records. Usually call from dynInit()
    • checkMandatory

      boolean checkMandatory()
      Mandatory field validations
      Returns:
      true if all mandatory field have been populated
    • isOnlyRule

      boolean isOnlyRule()
      Is only show payment rule and doesn't save changes to DB
      Returns:
      true if only show payment rule and doesn't save changes to DB
    • saveChanges

      boolean saveChanges()
      Save Changes
      Returns:
      true, if Window can exit
    • saveChangesInTrx

      boolean saveChangesInTrx(String trxName)
      Save changes to DB
      Parameters:
      trxName -
      Returns:
      true if save successfully
    • needSave

      boolean needSave()
      Need to save the calling window (order, invoice)
      Returns:
      true if changes have been made to the calling window
    • processOnline

      void processOnline()
      Online payment processing (for e.g credit card)
    • isApproved

      boolean isApproved()
      Is payment transaction have been approved by payment gateway
      Returns:
      true if payment transaction have been approved by payment gateway
    • showWindow

      void showWindow()
      Show form
    • closeWindow

      void closeWindow()
      Close form
    • getWindow

      Object getWindow()
      Get instance of UI form
      Returns:
      instance of UI form
    • setCustomizeValues

      void setCustomizeValues(PO po)
      Make additional changes to PO before write to DB
      Parameters:
      po -
    • setBankAccountProcessor

      void setBankAccountProcessor(MBankAccountProcessor bankAccountProcessor)
      Set online payment processor configuration
      Parameters:
      bankAccountProcessor -