Package org.compiere.grid
Class PaymentFormCreditCard
- java.lang.Object
-
- org.compiere.grid.PaymentForm
-
- org.compiere.grid.PaymentFormCreditCard
-
- All Implemented Interfaces:
IPaymentForm
- Direct Known Subclasses:
WPaymentFormCreditCard
public abstract class PaymentFormCreditCard extends PaymentForm
- Author:
- Elaine
-
-
Field Summary
Fields Modifier and Type Field Description int
m_C_Payment_ID
Start PaymentString
m_CCType
Start CreditCardMPayment
m_mPayment
MPayment
m_mPaymentOriginal
MPaymentTransaction
m_mPaymentTransaction
String
processMsg
ValueNamePair
selectedCreditCard
-
Fields inherited from class org.compiere.grid.PaymentForm
log, m_AD_Client_ID, m_AD_Org_ID, m_Amount, m_C_BPartner_ID, m_C_Currency_ID, m_Cash_As_Payment, m_DateAcct, m_DocStatus, m_isSOTrx, m_needSave, m_onlyRule, m_PaymentRule, s_Currencies
-
-
Constructor Summary
Constructors Constructor Description PaymentFormCreditCard(int windowNo, GridTab mTab)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MBankAccountProcessor
getBankAccountProcessor(String CCType, BigDecimal PayAmt)
ValueNamePair[]
getCreditCardList()
boolean
isApproved()
boolean
isBankAccountProcessorExist(String CCType, BigDecimal PayAmt)
void
loadData()
boolean
processOnline(String CCType, String CCNumber, String CCVV, String CCExp)
boolean
processOnline(String CCType, String CCNumber, String CCVV, String CCExp, int C_PaymentProcessor_ID)
boolean
save(String newCCType, String newCCNumber, String newCCExp, BigDecimal newAmount, String trxName)
boolean
saveChanges()
Save ChangesString
validateCreditCard(String CCType, String CCNumber, String CCVV, String CCExp, int C_BP_BankAccount_ID, String CustomerPaymentProfileID)
-
Methods inherited from class org.compiere.grid.PaymentForm
dynInit, getBankAccountProcessor, getGridTab, getInvoiceID, getWindowNo, isBankAccountProcessorExist, isOnlyRule, loadCurrencies, needSave, processOnline, setBankAccountProcessor, setCustomizeValues
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.compiere.grid.IPaymentForm
checkMandatory, closeWindow, getWindow, saveChangesInTrx, showWindow
-
-
-
-
Field Detail
-
m_C_Payment_ID
public int m_C_Payment_ID
Start Payment
-
m_mPayment
public MPayment m_mPayment
-
m_mPaymentOriginal
public MPayment m_mPaymentOriginal
-
m_mPaymentTransaction
public MPaymentTransaction m_mPaymentTransaction
-
m_CCType
public String m_CCType
Start CreditCard
-
selectedCreditCard
public ValueNamePair selectedCreditCard
-
processMsg
public String processMsg
-
-
Constructor Detail
-
PaymentFormCreditCard
public PaymentFormCreditCard(int windowNo, GridTab mTab)
-
-
Method Detail
-
loadData
public void loadData()
-
getCreditCardList
public ValueNamePair[] getCreditCardList()
-
saveChanges
public boolean saveChanges()
Description copied from interface:IPaymentForm
Save Changes- Specified by:
saveChanges
in interfaceIPaymentForm
- Overrides:
saveChanges
in classPaymentForm
- Returns:
- true, if Window can exit
-
save
public boolean save(String newCCType, String newCCNumber, String newCCExp, BigDecimal newAmount, String trxName)
-
processOnline
public boolean processOnline(String CCType, String CCNumber, String CCVV, String CCExp)
-
processOnline
public boolean processOnline(String CCType, String CCNumber, String CCVV, String CCExp, int C_PaymentProcessor_ID)
-
isBankAccountProcessorExist
public boolean isBankAccountProcessorExist(String CCType, BigDecimal PayAmt)
-
getBankAccountProcessor
public MBankAccountProcessor getBankAccountProcessor(String CCType, BigDecimal PayAmt)
-
isApproved
public boolean isApproved()
- Specified by:
isApproved
in interfaceIPaymentForm
- Overrides:
isApproved
in classPaymentForm
-
validateCreditCard
public String validateCreditCard(String CCType, String CCNumber, String CCVV, String CCExp, int C_BP_BankAccount_ID, String CustomerPaymentProfileID) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-