add option to limit automatic unsuspensions to a specific suspension reason type...
[freeside.git] / ng_selfservice / payment_cc.php
index aa13c69..37f57c0 100644 (file)
@@ -42,6 +42,7 @@ if ( $receipt_html ) { ?>
 
   $payment_info = $freeside->payment_info( array(
     'session_id' => $_COOKIE['session_id'],
+    'payment_payby' => 'CARD',
   ) );
 
   if ( isset($payment_info['error']) && $payment_info['error'] ) {
@@ -87,8 +88,8 @@ if ( $receipt_html ) { ?>
     <TD COLSPAN=7>
       <SELECT NAME="card_type"><OPTION></OPTION>
         <? foreach ( $card_types AS $ct ) { ?>
-          <OPTION <? if ( $card_type == $card_types[$ct] ) { echo 'SELECTED'; } ?>
-                  VALUE="<? echo $card_types[$ct]; ?>"><? echo $ct; ?>
+          <OPTION <? if ( $card_type == $ct ) { echo 'SELECTED'; } ?>
+                  VALUE="<? echo $ct; ?>"><? echo $ct; ?>
         <? } ?>
       </SELECT>
     </TD>