本文整理汇总了PHP中payment::refresh方法的典型用法代码示例。如果您正苦于以下问题:PHP payment::refresh方法的具体用法?PHP payment::refresh怎么用?PHP payment::refresh使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类payment
的用法示例。
在下文中一共展示了payment::refresh方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: stripslashes
$payment_info .= '<table>
<tr>
<td>' . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
<td class="main">' . $confirmation['fields'][$i]['title'] . '</td>
<td>' . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
<td class="main">' . stripslashes($confirmation['fields'][$i]['field']) . '</td>
</tr></table>';
}
$smarty->assign('PAYMENT_INFORMATION', $payment_info);
}
}
if (xtc_not_null($order->info['comments'])) {
$smarty->assign('ORDER_COMMENTS', nl2br(htmlspecialchars($order->info['comments'])) . xtc_draw_hidden_field('comments', $order->info['comments']));
}
// Call Refresh Hook
$payment_modules->refresh();
if (isset(${$_SESSION}['payment']->form_action_url) && !${$_SESSION}['payment']->tmpOrders && $_SESSION['payment'] != 'no_payment') {
$form_action_url = ${$_SESSION}['payment']->form_action_url;
} 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