Package org.compiere.grid
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 Summary
Modifier and TypeMethodDescriptionbooleanMandatory field validationsvoidClose formbooleandynInit()Dynamic initializationGet instance of UI formbooleanIs payment transaction have been approved by payment gatewaybooleanIs only show payment rule and doesn't save changes to DBvoidloadData()Load payment and related transaction records.booleanneedSave()Need to save the calling window (order, invoice)voidOnline payment processing (for e.g credit card)booleanSave ChangesbooleansaveChangesInTrx(String trxName) Save changes to DBvoidsetBankAccountProcessor(MBankAccountProcessor bankAccountProcessor) Set online payment processor configurationvoidsetCustomizeValues(PO po) Make additional changes to PO before write to DBvoidShow form
-
Method Details
-
dynInit
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
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
Make additional changes to PO before write to DB- Parameters:
po-
-
setBankAccountProcessor
Set online payment processor configuration- Parameters:
bankAccountProcessor-
-