no debug output
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 11 Apr 2018 14:38:46 +0000 (10:38 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 11 Apr 2018 14:38:46 +0000 (10:38 -0400)
remove debug output

classes/billingSupport.php
models/admin/member/billing.php
views/admin/billing/viewInvoice.html

index 6f96f43..7256ea9 100644 (file)
@@ -1253,7 +1253,7 @@ class GlmBillingSupport
             // 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 ) {
index caa3610..0f429aa 100644 (file)
@@ -436,7 +436,7 @@ class GlmMembersAdmin_member_billing // extends GlmDataBilling
 
             // 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 );
index 57986cb..4d2916c 100644 (file)
@@ -7,7 +7,7 @@
 {/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}