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
Interface for payment form for different payment mode (cash, credit card, etc)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
mandatory field validationsvoid
close formboolean
dynInit()
dynamic initializationboolean
boolean
void
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()- 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 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
Make additional changes to PO before write to DB- Parameters:
po
-
-
setBankAccountProcessor
Set online payment processor configuration- Parameters:
bankAccountProcessor
-
-