Interface IPaymentForm

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

public interface IPaymentForm
Interface for payment form 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()
      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 to the calling window
    • processOnline

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

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

      void showWindow()
      show form
    • closeWindow

      void closeWindow()
      close form
    • getWindow

      Object getWindow()
      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 -