當前位置: 首頁>>代碼示例>>PHP>>正文


PHP osC_Order::isValidCreditCard方法代碼示例

本文整理匯總了PHP中osC_Order::isValidCreditCard方法的典型用法代碼示例。如果您正苦於以下問題:PHP osC_Order::isValidCreditCard方法的具體用法?PHP osC_Order::isValidCreditCard怎麽用?PHP osC_Order::isValidCreditCard使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在osC_Order的用法示例。


在下文中一共展示了osC_Order::isValidCreditCard方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: loadSummaryData

 function loadSummaryData()
 {
     global $toC_Json, $osC_Language;
     $osC_Order = new osC_Order($_REQUEST['orders_id']);
     $response['customer'] = '<p style="margin-left:10px;">' . osC_Address::format($osC_Order->getCustomer(), '<br />') . '</p>' . '<p style="margin-left:10px;>' . osc_icon('telephone.png') . $osC_Order->getCustomer('telephone') . '<br />' . osc_icon('write.png') . $osC_Order->getCustomer('email_address') . '</p>';
     $response['shippingAddress'] = '<p style="margin-left:10px;">' . osC_Address::format($osC_Order->getDelivery(), '<br />') . '</p>';
     $response['billingAddress'] = '<p style="margin-left:10px;">' . osC_Address::format($osC_Order->getBilling(), '<br />') . '</p>';
     $response['paymentMethod'] = '<p style="margin-left:10px;">' . $osC_Order->getPaymentMethod() . '</p>';
     if ($osC_Order->isValidCreditCard()) {
         $response['paymentMethod'] .= '
       <table border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td>' . $osC_Language->get('credit_card_type') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('type') . '</td>
         </tr>
         <tr>
           <td>' . $osC_Language->get('credit_card_owner_name') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('owner') . '</td>
         </tr>
         <tr>
           <td>' . $osC_Language->get('credit_card_number') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('number') . '</td>
         </tr>
         <tr>
           <td>' . $osC_Language->get('credit_card_expiry_date') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('expires') . '</td>
         </tr>
       </table>';
     }
     $response['status'] = '<p style="margin-left:10px;">' . $osC_Order->getStatus() . '<br />' . ($osC_Order->getDateLastModified() > $osC_Order->getDateCreated() ? osC_DateTime::getShort($osC_Order->getDateLastModified(), true) : osC_DateTime::getShort($osC_Order->getDateCreated(), true)) . '</p>' . '<p style="margin-left:10px;">' . $osC_Language->get('number_of_comments') . ' ' . $osC_Order->getNumberOfComments() . '</p>';
     $response['total'] = '<p style="margin-left:10px;">' . $osC_Order->getTotal() . '</p>' . '<p style="margin-left:10px;">' . $osC_Language->get('number_of_products') . ' ' . $osC_Order->getNumberOfProducts() . '<br />' . $osC_Language->get('number_of_items') . ' ' . $osC_Order->getNumberOfItems() . '</p>';
     echo $toC_Json->encode($response);
 }
開發者ID:sajad1441,項目名稱:TomatoShop-v1,代碼行數:33,代碼來源:invoices.php

示例2:

  <br>

  <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContent">
    <tr>
      <td width="33%" valign="top">
        <div class="infoBoxHeading"><?php 
    echo tep_image('templates/' . $template . '/images/icons/16x16/payment.png', ENTRY_PAYMENT_METHOD, '16', '16') . ' ' . ENTRY_PAYMENT_METHOD;
    ?>
</div>
        <div class="infoBoxContent">
          <p><?php 
    echo $osC_Order->getPaymentMethod();
    ?>
</p>
<?php 
    if ($osC_Order->isValidCreditCard()) {
        ?>
          <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="smallText"><?php 
        echo ENTRY_CREDIT_CARD_TYPE;
        ?>
</td>
              <td class="smallText"><?php 
        echo $osC_Order->getCreditCardDetails('type');
        ?>
</td>
            </tr>
            <tr>
              <td class="smallText"><?php 
        echo ENTRY_CREDIT_CARD_OWNER;
開發者ID:itnovator,項目名稱:oscommerce_cvs,代碼行數:31,代碼來源:orders_edit.php


注:本文中的osC_Order::isValidCreditCard方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。