summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2010-10-10 19:42:54 +0000
committerivan <ivan>2010-10-10 19:42:54 +0000
commite0e63e55a8870b1ba76bd9aaedd5858c1ff0a07a (patch)
tree9dafa8ea7f29b039026c56280b168e562a267198
parent2f0ff297f42947c17bff651297bd0295232d03f2 (diff)
add "capture" links to pending payments in captured state, RT#10152
-rw-r--r--httemplate/edit/cust_pay_pending.html29
-rwxr-xr-xhttemplate/search/cust_pay_pending.html2
2 files changed, 20 insertions, 11 deletions
diff --git a/httemplate/edit/cust_pay_pending.html b/httemplate/edit/cust_pay_pending.html
index 0916a1c0c..0056bb925 100644
--- a/httemplate/edit/cust_pay_pending.html
+++ b/httemplate/edit/cust_pay_pending.html
@@ -8,6 +8,10 @@
<CENTER><FONT SIZE="+1"><B>No response was received from <% $cust_pay_pending->processor || 'the payment gateway' %> for this transaction. Check <% $cust_pay_pending->processor || 'the payment gateway' %>'s reporting and determine if this transaction completed successfully.</B></FONT></CENTER>
+% } elsif ( $action eq 'capture' ) {
+
+ <CENTER><FONT SIZE="+1"><B>Captured payment not recorded in database - check logs for errors.</B></FONT></CENTER>
+
% }
<BR>
@@ -91,7 +95,9 @@
</TD>
</TR>
-% } elsif ( $action eq 'complete' ) {
+% } else {
+
+%# if ( $action eq 'complete' ) {
<INPUT TYPE="hidden" NAME="action" VALUE="">
@@ -99,15 +105,18 @@
<TD ALIGN="center">
<BUTTON TYPE="button" onClick="document.pendingform.action.value = 'insert_cust_pay'; document.pendingform.submit();"><!--IMG SRC="<%$p%>images/tick.png" ALT=""-->Yes, transaction completed sucessfully.</BUTTON>
</TD>
- <TD>&nbsp;&nbsp;&nbsp;</TD>
- <TD ALIGN="center">
- <BUTTON TYPE="button" onClick="document.pendingform.action.value = 'decline'; document.pendingform.submit();"><!--IMG SRC="<%$p%>images/cross.png" ALT=""-->No, transaction was declined</BUTTON>
- </TD>
- <TD>&nbsp;&nbsp;&nbsp;</TD>
- <TD ALIGN="center">
- <BUTTON TYPE="button" onClick="document.pendingform.action.value = 'delete'; document.pendingform.submit();"><!--IMG SRC="<%$p%>images/cross.png" ALT=""-->No, transaction was not received</BUTTON>
- </TD>
- </TR>
+
+% if ( $action eq 'complete' ) {
+ <TD>&nbsp;&nbsp;&nbsp;</TD>
+ <TD ALIGN="center">
+ <BUTTON TYPE="button" onClick="document.pendingform.action.value = 'decline'; document.pendingform.submit();"><!--IMG SRC="<%$p%>images/cross.png" ALT=""-->No, transaction was declined</BUTTON>
+ </TD>
+ <TD>&nbsp;&nbsp;&nbsp;</TD>
+ <TD ALIGN="center">
+ <BUTTON TYPE="button" onClick="document.pendingform.action.value = 'delete'; document.pendingform.submit();"><!--IMG SRC="<%$p%>images/cross.png" ALT=""-->No, transaction was not received</BUTTON>
+ </TD>
+ </TR>
+% }
<TR><TD COLSPAN=5></TD></TR>
diff --git a/httemplate/search/cust_pay_pending.html b/httemplate/search/cust_pay_pending.html
index f46e08ab1..8b7350853 100755
--- a/httemplate/search/cust_pay_pending.html
+++ b/httemplate/search/cust_pay_pending.html
@@ -19,7 +19,7 @@ my %statusaction = (
'new' => 'delete',
'pending' => 'complete',
#'authorized' => '',
- #'captured' => '',
+ 'captured' => 'capture',
#'declined' => '',
#wouldn't need to take action on a done state#'done'
);