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 TypeMethodDescriptionboolean
Mandatory field validationsvoid
Close formboolean
dynInit()
Dynamic initializationGet instance of UI formboolean
Is payment transaction have been approved by payment gatewayboolean
Is only show payment rule and doesn't save changes to DBvoid
loadData()
Load payment and related transaction records.boolean
needSave()
Need to save the calling window (order, invoice)void
Online payment processing (for e.g credit card)boolean
Save Changesboolean
saveChangesInTrx
(String trxName) Save changes to DBvoid
setBankAccountProcessor
(MBankAccountProcessor bankAccountProcessor) Set online payment processor configurationvoid
setCustomizeValues
(PO po) Make additional changes to PO before write to DBvoid
Show 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
-
-