Ticket #1001503: Credit Cards Online - fix credit card online processing process

This commit is contained in:
Elaine Tan 2012-10-15 18:35:21 +08:00
parent d10b7a631e
commit e65ca5425b
3 changed files with 15 additions and 12 deletions

View File

@ -155,14 +155,6 @@ public class WPaymentFormCreditCard extends PaymentFormCreditCard implements Eve
Clients.response(new AuEcho(window, "runProcessOnline", null));
}
}
public void runProcessOnline() {
try {
processOnline();
} finally {
window.unlockUI();
}
}
@Override
public boolean checkMandatory() {
@ -186,10 +178,8 @@ public class WPaymentFormCreditCard extends PaymentFormCreditCard implements Eve
return true;
}
/**************************************************************************
* Process Online (sales only) - if approved - exit
*/
private void processOnline()
@Override
public void processOnline()
{
log.config("");
if (!checkMandatory())

View File

@ -95,6 +95,14 @@ public class WPaymentFormWindow extends Window implements EventListener<Event>,
} // actionPerformed
public void runProcessOnline() {
try {
paymentForm.processOnline();
} finally {
unlockUI();
}
}
public void unlockUI() {
if (!m_isLocked) return;

View File

@ -275,6 +275,11 @@ public abstract class PaymentForm implements IPaymentForm {
return retValue;
} // getInvoiceID
public void processOnline()
{
}
public GridTab getGridTab()
{
return m_mTab;