Esempio n. 1
0
 /**
  * Display Credit Card
  *
  * @return void
  */
 public function displaycreditcard()
 {
     $carthelper = new rsCarthelper();
     $get = JRequest::get('get');
     $creditcard = "";
     $payment_method_id = $get['payment_method_id'];
     if ($payment_method_id != "") {
         $creditcard = $carthelper->replaceCreditCardInformation($payment_method_id);
     }
     $creditcard = '<div id="creditcardinfo">' . $creditcard . '</div>';
     echo $creditcard;
     die;
 }
Esempio n. 2
0
</td>
		<td width="33%" class="checkout-bar-2-active"><?php 
echo JText::_('COM_REDSHOP_PAYMENT');
?>
</td>
		<td width="33%" class="checkout-bar-3"><?php 
echo JText::_('COM_REDSHOP_RECEIPT');
?>
</td>
	</tr>
</table>
<hr/>
<?php 
if ($is_creditcard == 1 && $ccinfo != '1' && $cart['total'] > 0) {
    $cart_data = '<form action="' . JRoute::_('index.php?option=com_redshop&view=checkout') . '" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data" onsubmit="return CheckCardNumber(this);">';
    $cart_data .= $carthelper->replaceCreditCardInformation($this->payment_method_id);
    $cart_data .= '<input type="hidden" name="option" value="com_redshop" />';
    $cart_data .= '<input type="hidden" name="Itemid" value="' . $Itemid . '" />';
    $cart_data .= '<input type="hidden" name="task" value="checkoutnext" />';
    $cart_data .= '<input type="hidden" name="view" value="checkout" />';
    $cart_data .= '<input type="submit" name="submit" class="greenbutton" value="' . JText::_('COM_REDSHOP_BTN_CHECKOUTNEXT') . '" />';
    $cart_data .= '<input type="hidden" name="ccinfo" value="1" />';
    $cart_data .= '<input type="hidden" name="users_info_id" value="' . $this->users_info_id . '" />';
    $cart_data .= '<input type="hidden" name="shipping_rate_id" value="' . $this->shipping_rate_id . '" />';
    $cart_data .= '<input type="hidden" name="payment_method_id" value="' . $this->payment_method_id . '" />';
    $cart_data .= '</form>';
    echo eval("?>" . $cart_data . "<?php ");
} elseif ($cart_data != "") {
    if ($print) {
        $onclick = "onclick='window.print();'";
    } else {