当前位置: 首页>>代码示例>>PHP>>正文


PHP payment::process_button方法代码示例

本文整理汇总了PHP中payment::process_button方法的典型用法代码示例。如果您正苦于以下问题:PHP payment::process_button方法的具体用法?PHP payment::process_button怎么用?PHP payment::process_button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在payment的用法示例。


在下文中一共展示了payment::process_button方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    );

    if (MODULE_ORDER_TOTAL_INSTALLED) {
      $oOrderTotalModules->process();
      $order_total_output = $oOrderTotalModules->output();
      $oSmarty->assign('order_total_output', $order_total_output);
    }

    if (is_array($oPaymentModules->modules)) {
        if ($confirmation = $oPaymentModules->confirmation()) {
            $oSmarty->assign('confirmation', $confirmation);
        }
    }

    if (is_array($oPaymentModules->modules)) {
      $oPaymentModules_process_button =  $oPaymentModules->process_button();
    }

    $oSmarty->assign('payment_modules_process_button', $oPaymentModules_process_button);


    if (isset($$_SESSION['payment']->form_action_url)) {
        $form_action_url = $$_SESSION['payment']->form_action_url;
    } else {
        $form_action_url = oos_href_link($aPages['checkout_process'], '', 'SSL');
    }
    $oSmarty->assign('form_action_url', $form_action_url);
    $oSmarty->assign('order', $oOrder);

    $oSmarty->assign('oosBreadcrumb', $oSmarty->fetch($aOption['breadcrumb']));
    $oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:checkout_confirmation.php

示例2: tep_draw_form

}

// #### HEADER SECTION
$smarty->display( 'main.tpl');


if (isset($$payment->form_action_url)) {
    $form_action_url = $$payment->form_action_url;
} else {
    $form_action_url = tep_href_link("checkout_process.php", '', 'SSL');
}

echo tep_draw_form('checkout_confirmation.php', $form_action_url, 'post', null, $payment);

if (is_array($payment_modules->modules)) {
    echo $payment_modules->process_button($transaction_no, $key);    
}
?>

<br><br>
<center>
<table width=85% align=center class="infoBox">
<tr height="15">
    <td colspan=3 class="infoBoxHeading" align=left>&nbsp;<font color=green><?php echo gettext("Please confirm your order")?></font></td>
</tr>
<tr>
    <td colspan=3>&nbsp;</td>
</tr>
<tr>
    <td align=center align=left><?php echo $SPOT[$payment];?>&nbsp;</td>
    <td><div align="right"><?php echo gettext("Payment Method");?>: &nbsp;</div></td>
开发者ID:nixonch,项目名称:a2billing,代码行数:31,代码来源:checkout_confirmation.php

示例3: tep_draw_button

echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>';
?>
</td>
          <td align="center" width="33%" class="checkoutBarCurrent"><?php 
echo CHECKOUT_BAR_CONFIRMATION;
?>
</td>
        </tr>
      </table>
    </div>

    <div style="float: right;">

<?php 
if (is_array($payment_modules->modules)) {
    echo $payment_modules->process_button();
}
echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');
?>

    </div>
  </div>

</div>

<script type="text/javascript">
$('#coProgressBar').progressbar({
  value: 100
});
</script>
开发者ID:grum1965,项目名称:Plaster-Ceiling-Roses,代码行数:30,代码来源:checkout_confirmation.php

示例4:

    if ($confirmation = $payment_modules->confirmation()) {
        $xoopsTpl->assign("pmods", 1);
        $conffields = $confirmation['fields'];
        for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {
            $r = $i;
        }
    }
}
if (tep_not_null($order->info['comments'])) {
    $xoopsTpl->assign("comment", 1);
    $xoopsTpl->assign("comments", nl2br(tep_output_string_protected($order->info['comments'])));
    $xoopsTpl->assign("commentfield", tep_draw_hidden_field('comments', $order->info['comments']));
}
if (isset(${$payment}->form_action_url)) {
    $form_action_url = ${$payment}->form_action_url;
} else {
    //    $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
    $form_action_url = tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL');
}
$xoopsTpl->assign("co_form", tep_draw_form('checkout_confirmation', $form_action_url, 'post'));
$xoopsTpl->assign("send", tep_draw_hidden_field('send', 1));
$xoopsTpl->assign("preorderprocess", $preopHTML);
if (is_array($payment_modules->modules)) {
    $xoopsTpl->assign("cob", $payment_modules->process_button());
}
$xoopsTpl->assign("cobc", tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER));
$xoopsTpl->assign("cobullet", tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'));
$xoopsTpl->assign("products", $products);
$xoopsTpl->assign("attr", $attr);
include_once XOOPS_ROOT_PATH . '/footer.php';
include XOOPS_ROOT_PATH . "/modules/osC/includes/application_bottom.php";
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:checkout_confirmation.php

示例5:

} else {
    $form_action_url = xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
}
// BOF GM_MOD saferpay
// we need a source for our js to be loaded befor form
$sPreForm = '';
if (method_exists(${$_SESSION}['payment'], 'confirm_pre_form')) {
    $sPreForm = ${$_SESSION}['payment']->confirm_pre_form();
}
$smarty->assign('CHECKOUT_FORM', $sPreForm . xtc_draw_form('checkout_confirmation', $form_action_url, 'post'));
$smarty->assign('CHECKOUT_FORM_PREFORM', $sPreForm);
$smarty->assign('CHECKOUT_FORM_ACTION_URL', $form_action_url);
// EOF GM_MOD saferpay
$payment_button = '';
if (is_array($payment_modules->modules)) {
    $payment_button .= $payment_modules->process_button();
}
$smarty->assign('MODULE_BUTTONS', $payment_button);
// BOF GM_MOD
$smarty->assign('BUTTON_BACK', '<a href="javascript:history.back()"><img src="templates/' . CURRENT_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/backgr.gif" /></a>');
$smarty->assign('CHECKOUT_BUTTON', xtc_image_submit('bestellung.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n");
// EOF GM_MOD
// BOF GM_MOD Heidelpay Bugfixes
$_SESSION['gm_heidelpay'] = $order->info['total'];
$_SESSION['gm_heidelpay_currency'] = $order->info['currency'];
$_SESSION['gm_heidelpay_firstname'] = $order->billing['firstname'];
$_SESSION['gm_heidelpay_lastname'] = $order->billing['lastname'];
$_SESSION['gm_heidelpay_gender'] = $order->customer['gender'];
$_SESSION['gm_heidelpay_street_address'] = $order->billing['street_address'];
$_SESSION['gm_heidelpay_postcode'] = $order->billing['postcode'];
$_SESSION['gm_heidelpay_city'] = $order->billing['city'];
开发者ID:digitaldevelopers,项目名称:gambio-gx2-bitcoin-payment,代码行数:31,代码来源:checkout_confirmation.php

示例6:

}
*/
$form_action_url = ${$_SESSION}['payment']->form_action_url;
if ($form_action_url) {
    if (IS_AJAX_PROCESSING) {
        //As we cannot access a URL on another server via AJAX, we need
        //to employ a proxy program, which does this on our behalf!!
        $hidden_fields = olc_draw_hidden_field('target_url', $form_action_url) . olc_draw_hidden_field('response_wait', ${$_SESSION}['payment']->response_wait);
        $form_action_url = FILENAME_CHECKOUT_AJAX_PAYMENT_PROXY;
    }
} else {
    $form_action_url = olc_href_link(FILENAME_CHECKOUT_PROCESS, EMPTY_STRING, SSL);
}
$smarty->assign('CHECKOUT_FORM', olc_draw_form('checkout_confirmation', $form_action_url, 'post') . $hidden_fields);
if (is_array($payment_modules->modules)) {
    $smarty->assign('MODULE_BUTTONS', $payment_modules->process_button());
}
if (CUSTOMER_STATUS_ID == DEFAULT_CUSTOMERS_STATUS_ID_COMPANY) {
    $customers_order_reference_text = 'customers_order_reference';
    $smarty->assign('CUSTOMERS_REFERENCE', olc_draw_input_field($customers_order_reference_text, $_SESSION[$customers_order_reference_text], 'size="40"'));
}
$comments_text = 'comments';
$smarty->assign('COMMENTS', olc_draw_textarea_field($comments_text, 'soft', '60', '5', $_SESSION[$comments_text]));
//check if display conditions on checkout page is true
if (DISPLAY_CONDITIONS_ON_CHECKOUT == TRUE_STRING_S) {
    $shop_content_query = olc_db_query("SELECT\n \t\t\t\t\tcontent_title,\n \t\t\t\t\tcontent_heading,\n \t\t\t\t\tcontent_text,\n \t\t\t\t\tcontent_file\n \t\t\t\t\tFROM " . TABLE_CONTENT_MANAGER . "\n \t\t\t\t\tWHERE content_group='3'\n \t\t\t\t\tAND languages_id='" . SESSION_LANGUAGE_ID . APOS);
    $shop_content_data = olc_db_fetch_array($shop_content_query);
    if ($shop_content_data['content_file'] == EMPTY_STRING) {
        $file = 'cache/cache/agb' . HTML_EXT;
        if (file_exists($file)) {
            //Write file only once a day!
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:checkout_confirmation.php

示例7:

 }
 if ($checkout_card_exp_month <= 0 || $checkout_card_exp_year <= 0) {
     $pay_error = true;
     $messageStack->add('pay_error', TEXT_CHECKOUT_PAYMENT_ERROR_EXPIRATION);
 }
 if (empty($checkout_card_cvn) || !preg_match('/\\d+/', $checkout_card_cvn)) {
     $pay_error = true;
     $messageStack->add('pay_error', TEXT_CHECKOUT_PAYMENT_ERROR_SECURITY_CODE);
 }
 if (isset($_SESSION['_process_pay_request'])) {
     $pay_error = true;
 }
 if (!$pay_error && !isset($_SESSION['_process_pay_request'])) {
     $_SESSION['_process_pay_request'] = true;
     @file_put_contents(DIR_FS_CATALOG . "rp/submitlog/orders.log", "Order creating\n", FILE_APPEND);
     $vars = $payment_modules->process_button();
     $vars['ip'] = $checkout_remote_ip;
     $vars['accept_language'] = $checkout_accept_language;
     $vars['user_agent'] = $checkout_user_agent;
     $vars['vga'] = $checkout_vga;
     $vars['hDate'] = $checkout_hDate;
     $vars['hTimeZone'] = $checkout_hTimeZone;
     $vars['creditCardNumber'] = $checkout_card_no;
     $vars['cardvNumber'] = $checkout_card_cvn;
     $vars['expDateMonth'] = $checkout_card_exp_month;
     $vars['expDateYear'] = $checkout_card_exp_year;
     if (!empty($checkout_BAddress)) {
         $vars['billaddress'] = $checkout_BAddress;
     }
     if (!empty($checkout_PostCode)) {
         $vars['billpostcode'] = $checkout_PostCode;
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:header_php.php

示例8: array

    if (is_array($payment_modules->modules)) {
        if ($confirmation = $payment_modules->confirmation()) {
            $confirmation_fields_array = array();
            for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {
                $confirmation_fields_array[] = array('title' => $confirmation['fields'][$i]['title'], 'field' => $confirmation['fields'][$i]['field']);
            }
            $smarty->assign(array('confirmation' => true, 'confirmation_title' => $confirmation['title'], 'confirmation_fields' => $confirmation_fields_array));
        }
    }
    if (xos_not_null($order->info['comments'])) {
        $smarty->assign(array('comments' => nl2br(xos_output_string_protected($order->info['comments'])), 'hidden_field_comments' => xos_draw_hidden_field('comments', $order->info['comments'])));
    }
    if (isset(${$_SESSION['payment']}->form_action_url)) {
        $form_action_url = ${$_SESSION['payment']}->form_action_url;
    } else {
        $form_action_url = xos_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
    }
    if (is_array($payment_modules->modules)) {
        $smarty->assign('input_process_button', $payment_modules->process_button());
    }
    if (sizeof($tax_rates) > 1 && $_SESSION['sppc_customer_group_tax_exempt'] != '1') {
        $smarty->assign('tax_groups', true);
    }
    $popup_status_query = xos_db_query("select status from " . TABLE_CONTENTS . "  where type = 'system_popup' and status = '1' and content_id = '8' LIMIT 1");
    $smarty->assign(array('form_begin' => xos_draw_form('checkout_confirmation', $form_action_url, 'post', 'onsubmit="return check_form();"'), 'form_end' => '</form>', 'link_filename_popup_content_8' => xos_db_num_rows($popup_status_query) ? xos_href_link(FILENAME_POPUP_CONTENT, 'co=8', $request_type) : '', 'order_products' => $order_products_array, 'billing_address' => xos_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'), 'payment_method' => $order->info['payment_method'], 'link_filename_shopping_cart' => xos_href_link(FILENAME_SHOPPING_CART), 'link_filename_checkout_payment_address' => xos_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'), 'link_filename_checkout_payment' => xos_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'link_filename_checkout_shipping' => xos_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'order_totals' => $order_totals_array));
    $smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'checkout_confirmation');
    $output_checkout_confirmation = $smarty->fetch(SELECTED_TPL . '/checkout_confirmation.tpl');
    $smarty->assign('central_contents', $output_checkout_confirmation);
    $smarty->display(SELECTED_TPL . '/frame.tpl');
    require DIR_WS_INCLUDES . 'application_bottom.php';
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:checkout_confirmation.php


注:本文中的payment::process_button方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。