本文整理汇总了PHP中CSalePaySystemAction::GetParamValue方法的典型用法代码示例。如果您正苦于以下问题:PHP CSalePaySystemAction::GetParamValue方法的具体用法?PHP CSalePaySystemAction::GetParamValue怎么用?PHP CSalePaySystemAction::GetParamValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSalePaySystemAction
的用法示例。
在下文中一共展示了CSalePaySystemAction::GetParamValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_futubank_form
protected function get_futubank_form() {
return new FutubankForm(
CSalePaySystemAction::GetParamValue('MERCHANT_ID'),
CSalePaySystemAction::GetParamValue('SECRET_KEY'),
CSalePaySystemAction::GetParamValue('IS_TEST') == 'Y'
);
}
示例2: init
function init()
{
$this->username = CSalePaySystemAction::GetParamValue("USER");
$this->pwd = CSalePaySystemAction::GetParamValue("PWD");
$this->signature = CSalePaySystemAction::GetParamValue("SIGNATURE");
$this->currency = CSalePaySystemAction::GetParamValue("CURRENCY");
$this->testMode = CSalePaySystemAction::GetParamValue("TEST") == "Y";
if ($this->testMode) {
$this->domain = "sandbox.";
}
if (strlen($_REQUEST["token"]) > 0) {
$this->token = $_REQUEST["token"];
}
if (strlen($_REQUEST["PayerID"]) > 0) {
$this->payerId = $_REQUEST["PayerID"];
}
$this->version = "98.0";
$dbSite = CSite::GetByID(SITE_ID);
$arSite = $dbSite->Fetch();
$this->serverName = $arSite["SERVER_NAME"];
if (strLen($this->serverName) <= 0) {
if (defined("SITE_SERVER_NAME") && strlen(SITE_SERVER_NAME) > 0) {
$this->serverName = SITE_SERVER_NAME;
} else {
$this->serverName = COption::GetOptionString("main", "server_name", "www.bitrixsoft.com");
}
}
$this->serverName = (CMain::IsHTTPS() ? "https" : "http") . "://" . $this->serverName;
if (strlen($this->username) <= 0 || strlen($this->username) <= 0 || strlen($this->username) <= 0) {
$GLOBALS["APPLICATION"]->ThrowException("CSalePaySystempaypal: init error", "CSalePaySystempaypal_init_error");
return false;
}
return true;
}
示例3: SaleFormatCurrency
?>
<font class="text" color="#009900"><b>
Thank you for purchasing!<br>
You have been billed <?php
echo SaleFormatCurrency($AMT, "USD");
?>
</b>
</font>
<?php
} else {
if (strlen($strErrorTmp) > 0) {
echo "<font color=\"#FF0000\"><b>" . $strErrorTmp . "</b></font><br>";
}
$noc_def = htmlspecialcharsbx(CSalePaySystemAction::GetParamValue("NOC"));
$address1_def = htmlspecialcharsbx(CSalePaySystemAction::GetParamValue("ADDRESS"));
$zipcode_def = htmlspecialcharsbx(CSalePaySystemAction::GetParamValue("ZIP"));
?>
<script type="text/javascript">
function checkFields(frm)
{
if (frm.elements['cardnum'].value == '')
{
alert('Card number missing');
return false;
}
if (frm.elements['cvv2'].value == '')
{
alert('CVV2 missing');
return false;
}
示例4: Date
"PS_SUM" => $AMT,
"PS_CURRENCY" => "USD",
"PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", SITE_ID))),
"USER_CARD_TYPE" => false,
"USER_CARD_NUM" => $cardnum,
"USER_CARD_EXP_MONTH" => $cardexp1,
"USER_CARD_EXP_YEAR" => "20".$cardexp2,
"USER_CARD_CODE" => $cvv2
);
$strPaySysError = "";
*/
}
} else {
$noc_def = CSalePaySystemAction::GetParamValue("NOC");
$address1_def = CSalePaySystemAction::GetParamValue("ADDRESS");
$zipcode_def = CSalePaySystemAction::GetParamValue("ZIP");
?>
<table border="0" width="100%" cellpadding="2" cellspacing="2">
<tr>
<td align="right" class="tablebody" width="40%">
<font class="tablebodytext">Credit Card Number</font>
</td>
<td class="tablebody" width="60%">
<input class="inputtext" type="text" name="cardnum" value="<?php
echo htmlspecialcharsbx($_REQUEST["cardnum"]);
?>
" size="35">
</td>
</tr>
<tr>
<td align="right" class="tablebody" width="40%">
示例5: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_GET["server_responce"]) && $_GET["server_responce"] == "Y" && !empty($_POST["cartId"])) {
$bCorrect = True;
if ($bCorrect && !($arOrder = CSaleOrder::GetByID(IntVal($_POST["cartId"])))) {
$bCorrect = False;
}
if ($bCorrect) {
CSalePaySystemAction::InitParamArrays($arOrder, $arOrder["ID"]);
$strCallbackPassword = CSalePaySystemAction::GetParamValue("CALLBACK_PASSWORD");
if (strlen($strCallbackPassword) <= 0 || $_POST["callbackPW"] != $strCallbackPassword) {
$bCorrect = False;
}
}
if ($bCorrect && isset($_POST["testMode"]) && IntVal($_POST["testMode"]) > 0) {
$bCorrect = False;
}
if ($bCorrect) {
$arFields = array("PS_STATUS" => $_POST["transStatus"] == "Y" ? "Y" : "N", "PS_STATUS_CODE" => $_POST["transStatus"], "PS_STATUS_DESCRIPTION" => $_POST["rawAuthMessage"], "PS_STATUS_MESSAGE" => $_POST["transStatus"] == "Y" ? "The WorldPay ID for this transaction: " . $_POST["transId"] . ", Time of this transaction: " . Date("r", $_POST["transTime"]) : "", "PS_SUM" => $_POST["authAmount"], "PS_CURRENCY" => $_POST["authCurrency"], "PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))), "USER_ID" => $arOrder["USER_ID"]);
if ($arOrder["CURRENCY"] == $_POST["authCurrency"] && $arOrder["PRICE"] == $_POST["authAmount"]) {
CSaleOrder::PayOrder($arOrder["ID"], "Y");
}
CSaleOrder::Update($arOrder["ID"], $arFields);
}
}
示例6:
</tr>
<?php
}
?>
<tr><td> </td></tr>
<tr>
<td><nobr><?php
echo CSalePaySystemAction::GetParamValue("SELLER_ACC_POS", false);
?>
</nobr></td>
<td style="border-bottom: 1pt solid #000000; text-align: center; ">
<?php
if (!$blank && CSalePaySystemAction::GetParamValue("SELLER_ACC_SIGN", false)) {
?>
<span style="position: relative; "> <?php
echo CFile::ShowImage(CSalePaySystemAction::GetParamValue("SELLER_ACC_SIGN", false), 200, 50, 'style="position: absolute; margin-left: -75pt; bottom: 0pt; "');
?>
</span>
<?php
}
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
</table>
示例7: IntVal
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
$inv_id = IntVal($_REQUEST["inv_id"]);
if (IntVal($inv_id) > 0) {
$bCorrectPayment = True;
$inv_id = IntVal($_REQUEST["inv_id"]);
$out_summ = $_REQUEST["OutSum"];
$crc = $_REQUEST["SignatureValue"];
if (!($arOrder = CSaleOrder::GetByID(IntVal($inv_id)))) {
$bCorrectPayment = False;
}
if ($bCorrectPayment) {
CSalePaySystemAction::InitParamArrays($arOrder, $arOrder["ID"]);
}
$mrh_pass2 = CSalePaySystemAction::GetParamValue("ShopPassword2");
$strCheck = md5($out_summ . ":" . $inv_id . ":" . $mrh_pass2);
if ($bCorrectPayment && strtoupper($CHECKSUM) != strtoupper($strCheck)) {
$bCorrectPayment = False;
}
if ($bCorrectPayment) {
$arFields = array("PS_STATUS" => "Y", "PS_STATUS_CODE" => "-", "PS_STATUS_DESCRIPTION" => $strPS_STATUS_DESCRIPTION, "PS_STATUS_MESSAGE" => $strPS_STATUS_MESSAGE, "PS_SUM" => $out_summ, "PS_CURRENCY" => "", "PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))));
// You can comment this code if you want PAYED flag not to be set automatically
if ($arOrder["PRICE"] == $out_summ) {
CSaleOrder::PayOrder($arOrder["ID"], "Y");
}
if (CSaleOrder::Update($arOrder["ID"], $arFields)) {
echo "OK";
}
}
}
示例8: die
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?><?
include(GetLangFileName(dirname(__FILE__)."/", "/payment.php"));
function either($a, $b) { if ($a != NULL) return $a; return $b;}
$TMG_PK_SERVER_ADDR = CSalePaySystemAction::GetParamValue("TMG_PK_SERVER_ADDR");
$user_id = (int)$GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["USER_ID"];
$sum = (float)either(
CSalePaySystemAction::GetParamValue("SHOULD_PAY"),
$GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"]);
$orderid = (int)either(
CSalePaySystemAction::GetParamValue("ORDER_ID"),
$GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"]);
$email = either($GLOBALS["SALE_INPUT_PARAMS"]["PROPERTY"]["EMAIL"], $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["USER_EMAIL"]);
$phone = htmlspecialchars($GLOBALS['SALE_INPUT_PARAMS']['PROPERTY']['PHONE']);
// --- BEGIN --- костыль для arteva
$arOrder = getOrder($orderid);
$user_id = $arOrder["ACCOUNT_NUMBER"]; // вместо пользователя передаём номер заказа (не ID)
// --- END ---
$opts = array ("sum"=>$sum, "user_id"=>$user_id);
$payment_parameters = array("clientid"=>$user_id, "orderid"=>$orderid, "sum"=>$sum, "phone"=>$phone, "email"=>$email);
$query = http_build_query($payment_parameters);
$err_num = $err_text = NULL;
$form = QueryGetData($TMG_PK_SERVER_ADDR, 80, "/external/", $query, $err_num, $err_text);
if ($form == "")
$form = "<h3>Произошла ошибка при инциализации платежа</h3><p>$err_num: ".htmlspecialchars($err_text)."</p>";
示例9: if
</td>
<td style="width: 20pt; "> </td>
<td>Посада: </td>
<td style="width: 160pt; border: 1pt solid #000000; border-width: 0pt 0pt 1pt 0pt; ">
<input
style="border: none; background: none; width: 100%; text-align: center; "
type="text"
value="<?php
echo CSalePaySystemAction::GetParamValue("SELLER_ACC_POS");
?>
"
>
</td>
</tr>
</table>
</div>
<br>
<br>
<? if (CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE")) { ?>
<div style="text-align: right; "><b><?php
echo sprintf("Рахунок дійсний до сплати до %s", ConvertDateTime(CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE"), FORMAT_DATE) ?: CSalePaySystemAction::GetParamValue("DATE_PAY_BEFORE"));
?>
</b></div>
<? } ?>
</div>
</body>
</html>
示例10: md5
}
} else {
$SERVER_NAME_tmp = "";
if (defined("SITE_SERVER_NAME")) {
$SERVER_NAME_tmp = SITE_SERVER_NAME;
}
if (strlen($SERVER_NAME_tmp) <= 0) {
$SERVER_NAME_tmp = COption::GetOptionString("main", "server_name", "");
}
/*
&purse=".$strPAYEE_PURSE;
$strPayPath .= "&amount=".round($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"], 2);
$strPayPath .= "&method=POST";
$strPayPath .= "&desc=Order_".IntVal($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"])
*/
$strCheck = md5($_POST["pci_wmtid"] . $_POST["WMID"] . md5(ToUpper("http://" . $SERVER_NAME_tmp . CSalePaySystemAction::GetParamValue("PATH_TO_RESULT") . "?ORDER_ID=" . $arOrder["ID"] . $CNST_PAYEE_PURSE . round($arOrder["PRICE"], 2) . "Order_" . $arOrder["ID"] . CSalePaySystemAction::GetParamValue("TEST_MODE"))) . $_POST["pci_pursesrc"] . $_POST["pci_pursedest"] . $_POST["pci_amount"] . $_POST["pci_desc"] . $_POST["pci_datecrt"] . $_POST["pci_mode"] . md5($CNST_SECRET_KEY));
if ($_POST["pci_marker"] != $strCheck) {
$bCorrectPayment = False;
}
if ($bCorrectPayment) {
$strPS_STATUS_DESCRIPTION = "";
if (strlen($_POST["pci_mode"]) > 0) {
$strPS_STATUS_DESCRIPTION .= "тестовый режим, реально деньги не переводились; ";
}
$strPS_STATUS_DESCRIPTION .= "кошелек продавца - " . $_POST["pci_pursedest"] . "; ";
$strPS_STATUS_DESCRIPTION .= "номер операции - " . $_POST["pci_wmtid"] . "; ";
$strPS_STATUS_DESCRIPTION .= "дата платежа - " . $_POST["pci_datecrt"] . "";
$strPS_STATUS_MESSAGE = "";
$strPS_STATUS_MESSAGE .= "кошелек покупателя - " . $_POST["pci_pursesrc"] . "; ";
$strPS_STATUS_MESSAGE .= "WMId покупателя - " . $_POST["WMID"] . "; ";
$strPS_STATUS_MESSAGE .= "" . $_POST["pci_desc"] . "";
示例11:
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
$entityId = CSalePaySystemAction::GetParamValue("ORDER_PAYMENT_ID");
list($orderId, $paymentId) = \Bitrix\Sale\PaySystem\Manager::getIdsByPayment($entityId);
/** @var \Bitrix\Sale\Order $order */
$order = \Bitrix\Sale\Order::load($orderId);
/** @var \Bitrix\Sale\PaymentCollection $paymentCollection */
$paymentCollection = $order->getPaymentCollection();
/** @var \Bitrix\Sale\Payment $payment */
$payment = $paymentCollection->getItemById($paymentId);
$data = \Bitrix\Sale\PaySystem\Manager::getById($payment->getPaymentSystemId());
$service = new \Bitrix\Sale\PaySystem\Service($data);
$service->initiatePay($payment);
示例12:
die;
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$bCorrectPayment = True;
if (!($arOrder = CSaleOrder::GetByID(IntVal($_POST["LMI_PAYMENT_NO"])))) {
$bCorrectPayment = False;
}
if ($bCorrectPayment) {
CSalePaySystemAction::InitParamArrays($arOrder, $arOrder["ID"]);
}
$CNST_SECRET_KEY = CSalePaySystemAction::GetParamValue("CNST_SECRET_KEY");
if (strlen($CNST_SECRET_KEY) <= 0) {
$bCorrectPayment = False;
}
$CNST_PAYEE_PURSE = CSalePaySystemAction::GetParamValue("SHOP_ACCT");
$currency = CSalePaySystemAction::GetParamValue("CURRENCY");
if (strlen($currency) <= 0 || $currency == "RUR") {
$currency = "RUB";
}
if ($_POST["LMI_PREREQUEST"] == "1" || $_POST["LMI_PREREQUEST"] == "2") {
if ($arOrder["PRICE"] == DoubleVal($_POST["LMI_PAYMENT_AMOUNT"]) && $currency == DoubleVal($_POST["LMI_CURRENCY"]) && $CNST_PAYEE_PURSE == $_POST["LMI_MERCHANT_ID"]) {
$APPLICATION->RestartBuffer();
echo "YES";
die;
} else {
$APPLICATION->RestartBuffer();
echo "Параметры платежа несовпадают.";
die;
}
} else {
$strCheck = base64_encode(pack("H*", md5($_POST["LMI_MERCHANT_ID"] . ";" . $_POST["LMI_PAYMENT_NO"] . ";" . $_POST["LMI_SYS_PAYMENT_ID"] . ";" . $_POST["LMI_SYS_PAYMENT_DATE"] . ";" . $_POST["LMI_PAYMENT_AMOUNT"] . ";" . $_POST["LMI_CURRENCY"] . ";" . $_POST["LMI_PAID_AMOUNT"] . ";" . $_POST["LMI_PAID_CURRENCY"] . ";" . $_POST["LMI_PAYMENT_SYSTEM"] . ";" . $_POST["LMI_SIM_MODE"] . ";" . $CNST_SECRET_KEY)));
示例13: min
$isAccSign = true;
}
}
$sellerAccPos = CSalePdf::prepareToPdf(CSalePaySystemAction::GetParamValue("SELLER_ACC_POS", false));
if ($isAccSign && $pdf->GetStringWidth($sellerAccPos) <= 160) {
$pdf->SetY($pdf->GetY() + min($signHeight, 30) - 15);
}
$pdf->MultiCell(150, 15, $sellerAccPos, 0, 'L');
$pdf->SetXY($margin['left'] + 150, $pdf->GetY() - 15);
if ($isAccSign) {
$pdf->Image(CSalePaySystemAction::GetParamValue('SELLER_ACC_SIGN', false), $pdf->GetX() + 80 - $signWidth / 2, $pdf->GetY() - $signHeight + 15, $signWidth, $signHeight);
}
$x1 = $pdf->GetX();
$pdf->Cell(CSalePaySystemAction::GetParamValue("SELLER_DIR", false) ? $x2 - $x1 : 160, 15, '');
$x2 = $pdf->GetX();
if (CSalePaySystemAction::GetParamValue("SELLER_ACC", false)) {
$pdf->Write(15, CSalePdf::prepareToPdf('(' . CSalePaySystemAction::GetParamValue("SELLER_ACC", false) . ')'));
}
$pdf->Ln();
$y2 = $pdf->GetY();
$pdf->Line($x1, $y2, $x2, $y2);
}
$dest = 'I';
if ($_REQUEST['GET_CONTENT'] == 'Y') {
$dest = 'S';
} else {
if ($_REQUEST['DOWNLOAD'] == 'Y') {
$dest = 'D';
}
}
return $pdf->Output(sprintf('Schet No %s ot %s.pdf', $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ACCOUNT_NUMBER"], ConvertDateTime($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["DATE_INSERT"], 'YYYY-MM-DD')), $dest);
示例14: if
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
$ps_key = trim(CSalePaySystemAction::GetParamValue("ps_key"));
$ps_receiver = trim(CSalePaySystemAction::GetParamValue("ps_receiver"));
$ps_amount = trim(CSalePaySystemAction::GetParamValue("ps_amount"));
$ps_order = trim(CSalePaySystemAction::GetParamValue("ps_order"));
$data['withdraw_amount'] = trim($_REQUEST,"withdraw_amount");
$data['sender'] = trim($_REQUEST,"sender");
$data['sha1_hash'] = trim($_REQUEST,"sha1_hash");
$data['label'] = trim($_REQUEST,"label");
$data['operation_id'] = trim($_REQUEST,"operation_id");
// data hash
$ps_arr = array(
"notification_type",
"operation_id",
"amount",
"currency",
"datetime",
"sender",
"codepro",
//"notification_secret",
//"label",
);
foreach ($ps_arr as $key) {
$ps_p_sign .= trim($_REQUEST[$key]) . "&";
}
$ps_p_sign .= $ps_key . "&" . $data['label'];
$ps_hash = sha1($ps_p_sign);
示例15: define
//файл должен располагаться в публичной части сайта и Платежной системе необходимо сообщить
//адрес этого файла. Файл принимает параметры, переданные методом GET и только в режиме PAYMENT
define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
CModule::IncludeModule("sale");
if ($mode == "PAYMENT") {
if (IntVal($issuer_id) > 0) {
$bCorrectPayment = True;
if (!($arOrder = CSaleOrder::GetByID(IntVal($issuer_id)))) {
$bCorrectPayment = False;
}
if ($bCorrectPayment) {
CSalePaySystemAction::InitParamArrays($arOrder, $arOrder["ID"]);
}
$PASS = CSalePaySystemAction::GetParamValue("PASS");
$strCheck = md5($PASS . "PAYMENT" . $invoice . $issuer_id . $payment_id . $payer . $currency . $value . $date . $confirmed);
if ($bCorrectPayment && $CHECKSUM != $strCheck) {
$bCorrectPayment = False;
}
if ($bCorrectPayment) {
$strPS_STATUS_DESCRIPTION = "";
$strPS_STATUS_DESCRIPTION .= "номер счета - " . $invoice . "; ";
$strPS_STATUS_DESCRIPTION .= "номер платежа - " . $payment_id . "; ";
$strPS_STATUS_DESCRIPTION .= "дата платежа - " . $date . "";
$strPS_STATUS_DESCRIPTION .= "код подтверждения платежа - " . $confirmed . "";
$strPS_STATUS_MESSAGE = "";
if (isset($payer) && strlen($payer) > 0) {
$strPS_STATUS_MESSAGE .= "e-mail покупателя - " . $payer . "; ";
}
$arFields = array("PS_STATUS" => "Y", "PS_STATUS_CODE" => "-", "PS_STATUS_DESCRIPTION" => $strPS_STATUS_DESCRIPTION, "PS_STATUS_MESSAGE" => $strPS_STATUS_MESSAGE, "PS_SUM" => $value, "PS_CURRENCY" => $currency, "PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))), "USER_ID" => $arOrder["USER_ID"]);