2if (!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !==
true)
8Loc::loadMessages(__FILE__);
13 <table border=
"0" width=
"100%" cellpadding=
"2" cellspacing=
"2">
17 $itemName =
"Invoice ".$params[
"PAYMENT_ID"].
" (".
$params[
"PAYMENT_DATE_INSERT"].
")";
19 <form action=
"<?=$params['URL']?>" method=
"post">
20 <input type=
"hidden" name=
"cmd" value=
"_xclick">
21 <input type=
"hidden" name=
"buttonsource" value=
"Bitrix_Cart">
22 <input type=
"hidden" name=
"business" value=
"<?= htmlspecialcharsbx($params["PAYPAL_BUSINESS
"]) ?>">
23 <input type=
"hidden" name=
"item_name" value=
"<?=htmlspecialcharsbx($itemName)?>">
24 <input type=
"hidden" name=
"currency_code" value=
"<?=htmlspecialcharsbx($params["PAYMENT_CURRENCY
"])?>">
25 <input type=
"hidden" name=
"amount" value=
"<?=PriceMaths::roundPrecision($params["PAYMENT_SHOULD_PAY
"]);?>">
26 <input type=
"hidden" name=
"custom" value=
"<?=htmlspecialcharsbx($params["PAYMENT_ID
"])?>">
28 <?
if (
$params[
"PAYPAL_ON0"] !=
''):?>
29 <input type=
"hidden" name=
"on0" value=
"<?=urlencode($params["PAYPAL_ON0
"])?>">
30 <input type=
"hidden" name=
"os0" value=
"<?=urlencode($params["PAYPAL_OS0
"])?>">
33 <?
if (
$params[
"PAYPAL_ON1"] !=
'' &&
$params[
"PAYPAL_ON0"] !=
''):?>
34 <input type=
"hidden" name=
"on1" value=
"<?=urlencode($params["PAYPAL_ON1
"])?>">
35 <input type=
"hidden" name=
"os1" value=
"<?=urlencode($params["PAYPAL_OS1
"])?>">
38 <?
if (
$params[
"PAYPAL_NOTIFY_URL"] !=
''):?>
39 <input type=
"hidden" name=
"notify_url" value=
"<?=htmlspecialcharsbx($params["PAYPAL_NOTIFY_URL
"])?>">
42 <?
if (
$params[
"PAYPAL_RETURN"] !=
''):?>
43 <input type=
"hidden" name=
"return" value=
"<?=htmlspecialcharsbx($params["PAYPAL_RETURN
"])?>">
46 <?
if (
$params[
"PAYPAL_LC"] !=
''):?>
47 <input type=
"hidden" name=
"lc" value=
"<?=htmlspecialcharsbx($params["PAYPAL_LC
"])?>">
50 <? $buttonSrc = (
$params[
"PAYPAL_BUTTON_SRC"] <>
'') ?
$params[
"PAYPAL_BUTTON_SRC"] :
"http://www.paypal.com/en_US/i/btn/x-click-but6.gif";?>
52 <input type=
"image" class=
"mw-100" src=
"<?=$buttonSrc?>" name=
"submit">
61 echo Loc::getMessage(
"SALE_HPS_PAYPAL_I3");
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']