1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
payment.php
См. документацию.
1<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?><?
4?>
5<table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td class="tableborder">
6<table border="0" cellpadding="3" cellspacing="0" width="100%">
7 <form action="https://select.worldpay.com/wcc/purchase" method="post" target="_blank">
8 <tr>
9 <td align="center" class="tablebody" colspan="2">
10 <font class="tablebodytext">
11 <input type="hidden" name="instId" value="<?= $strYourInstId ?>">
12 <input type="hidden" name="cartId" value="<?= intval($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"]) ?>">
13 <input type="hidden" name="amount" value="<?= htmlspecialcharsbx($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"]) ?>">
14 <input type="hidden" name="currency" value="<?= htmlspecialcharsbx($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"]) ?>">
15 <?if (intval($iTestTransaction) > 0):?>
16 <input type="hidden" name="testMode" value="<?= $iTestTransaction ?>">
17 <?endif;?>
18 <input type="hidden" name="desc" value="Order #<?= intval($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"]) ?>">
19
20 <!-- order properties codes -> -->
21 <?
22 $arTmp = array("name" => "PAYER_NAME", "tel" => "PHONE", "email" => "EMAIL",
23 "fax" => "FAX", "address" => "ADDRESS", "postcode" => "ZIP",
24 "country" => "COUNTRY"
25 );
26 foreach ($arTmp as $key => $value)
27 {
28 if (($val = CSalePaySystemAction::GetParamValue($value)) !== False)
29 {
30 ?><input type="hidden" name="<?= $key ?>" value="<?= htmlspecialcharsbx($val) ?>"><?
31 }
32 }
33 ?>
34
35 <input type="hidden" name="MC_CurrentStep" value="<?= intval($GLOBALS["CurrentStep"]) ?>">
36 <input type="submit" value="Submit to WorldPay for Payment Now" class="inputbutton">
37 </font>
38 </td>
39 </tr>
40 </form>
41</table>
42</td></tr></table>
static GetParamValue($key, $defaultValue=null)
Определения pay_system_action.php:76
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
Определения file_new.php:677
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
endif
Определения csv_new_setup.php:990
$iTestTransaction
Определения payment.php:2
$strYourInstId
Определения payment.php:3
if(intval($iTestTransaction) > 0) $arTmp
Определения payment.php:22
if(empty($signedUserToken)) $key
Определения quickway.php:257
die
Определения quickway.php:367
text align
Определения template.php:556
$val
Определения options.php:1793