本文整理匯總了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