// Now try to run the card processor
$ccResult = $CcProcessor->processPayment( $payment, $billing );
- echo '<pre>$ccResult: ' . print_r( $ccResult, true ) . '</pre>';
+ // echo '<pre>$ccResult: ' . print_r( $ccResult, true ) . '</pre>';
// If successful submission - say we're complete
if ( is_array( $ccResult ) && isset( $ccResult['status'] ) && $ccResult['status'] == 1 ) {
// if error
- $messages = '<pre>'.print_r( $_REQUEST, true ).'</pre>';
+ // $messages = '<pre>'.print_r( $_REQUEST, true ).'</pre>';
$account_id = filter_var( $_REQUEST['account_id'], FILTER_VALIDATE_INT );
$invoices = filter_var( $_REQUEST['invoices'], FILTER_VALIDATE_INT, array( 'flags' => FILTER_REQUIRE_ARRAY ) );
$amount = filter_var( $_REQUEST['amount'], FILTER_VALIDATE_FLOAT );
{/if}
<div style="max-width: 850px;">
- {if $fromMemberMenu}
+ {if $fromMemberMenu && !$invoice.paid}
<a href="{$thisUrl}?page=glm-members-admin-menu-member&glm_action=billing&member={$memberID}&option=makepayment" class="button button-secondary glm-right">Pay Invoice</a>
{/if}