Привет всем тестирую одну кмс и нужна Ваша помощь документе cms сказано: After successful moderation, check the form of the deposit. If the form does not work and you get the error of generating a digital signature Your project was announced as an intermediary for financial transactions. You need to uncomment out the code line 209, 234, 235, 238, 241 on the page application/views/account/deposit/confirm.php. This code will allow you to send encrypted additional parameters to the server Payeer. Мой сайт прошел модерацию и дали ему статус платежный шлюз а вот сам код помогите раскоментировать PHP: <?php /* <input type="hidden" name="form[ps]" value="2609"> <input type="hidden" name="form[curr[2609]]" value="USD"> */ ?> <?php /* Enable submerchant <input type="text" name="m_params" value="<?php echo $m_params?>"> */ ?> <?php /* <input type="hidden" name="m_cipher_method" value="AES-256-CBC"> */ ?> --- Добавлено --- если убираю эти /* знаки появляется синтетическая ошибка <
Синтетическая? Дык вы и по русски то читать не умеете... Куда вам в прграммирование Надо ещё убирать и те */
Предполагалось наверное что вы удалите строки содержащие /* если это не php фаил, то так: HTML: <input type="hidden" name="form[ps]" value="2609"> <input type="hidden" name="form[curr[2609]]" value="USD"> <input type="text" name="m_params" value="<?php echo $m_params?>"> <input type="hidden" name="m_cipher_method" value="AES-256-CBC"> И у вас где то в этом файле должен указывается $m_params.
PHP: <?php // Start Payeer form ?> <?if($code_method == "payeer"){?> <?php $m_shop = $merchant_account; // merchant ID $m_orderid = rand(100000000000, 900000000000); // invoice number in the merchant's invoicing system $m_amount = $total_amount; // invoice amount with two decimal places $m_curr = $symbol; // invoice currency $m_desc = base64_encode($user['username']); // invoice description encoded using a base64 $m_key = $payeer['api_value1']; // Forming an array for signature generation $arHash = array( $m_shop, $m_orderid, $m_amount, $m_curr, $m_desc ); // Forming an array for additional parameters /*$arParams = array( 'submerchant' => $this->settings->site_name, ); // Forming a key for encryption $key = md5('0000'.$m_orderid); // Encrypting additional parameters $m_params = urlencode(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, json_encode($arParams), MCRYPT_MODE_ECB))); // Adding parameters to the signature-formation array $arHash[] = $m_params; */ // Adding the secret key to the signature-formation array $arHash[] = $m_key; // Forming a signature $sign = strtoupper(hash('sha256', implode(':', $arHash))); ?> <form method="post" action="https://payeer.com/merchant/"> <input type="hidden" name="m_shop" value="<?php echo $m_shop?>"> <input type="hidden" name="m_orderid" value="<?php echo $m_orderid?>"> <input type="hidden" name="m_amount" value="<?php echo $m_amount?>"> <input type="hidden" name="m_curr" value="<?php echo $m_curr?>"> <input type="hidden" name="m_desc" value="<?php echo $m_desc?>"> <input type="hidden" name="m_sign" value="<?php echo $sign?>"> <?php /* <input type="hidden" name="form[ps]" value="2609"> <input type="hidden" name="form[curr[2609]]" value="USD"> */ ?> <?php /* Enable submerchant <input type="text" name="m_params" value="<?php echo $m_params?>"> */ ?> <?php /* <input type="hidden" name="m_cipher_method" value="AES-256-CBC"> */ ?> <button type="submit" class="btn btn-success"><?php echo lang('users transfer protect_confirm'); ?></button> </form> <?}else{?> <?}?> <?php // End Payeer form ?> опишу проблему у меня есть сайт платёжный агрегатор как пайеер в данный код надо раскоментировать все закоментированные строки. и обязательно нужен чтоб работал submerchant вот файл на пдф документацию https://www.payeer.com/upload/pdf/PayeerMerchantru.pdf Вот что пишет саппорт пайер: Уважаемый пользователь, Вам нужно передавать параметр submerchant как указано в документации https://docs.google.com/viewer?url=https://www.payeer.com/upload/pdf/PayeerMerchantru.pdf С уважением, Служба поддержки. P.s Если кто-то хочет помочь через TeamViewer 13.2.26558 буду очень благодарен. Вот логин теамвиевер 1 083 418 678 вот пароль 548ixi Я всегда за компом жду вашей помощи спасибо
PHP: <?php // Start Payeer form ?> <?if($code_method == "payeer"){?> <?php $m_shop = $merchant_account; // merchant ID $m_orderid = rand(100000000000, 900000000000); // invoice number in the merchant's invoicing system $m_amount = $total_amount; // invoice amount with two decimal places $m_curr = $symbol; // invoice currency $m_desc = base64_encode($user['username']); // invoice description encoded using a base64 $m_key = $payeer['api_value1']; // Forming an array for signature generation $arHash = array( $m_shop, $m_orderid, $m_amount, $m_curr, $m_desc ); // Forming an array for additional parameters $arParams = array( 'submerchant' => $this->settings->site_name, ); // Forming a key for encryption $key = md5('0000'.$m_orderid); // Encrypting additional parameters $m_params = urlencode(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, json_encode($arParams), MCRYPT_MODE_ECB))); // Adding parameters to the signature-formation array $arHash[] = $m_params; // Adding the secret key to the signature-formation array $arHash[] = $m_key; // Forming a signature $sign = strtoupper(hash('sha256', implode(':', $arHash))); ?> <form method="post" action="https://payeer.com/merchant/"> <input type="hidden" name="m_shop" value="<?php echo $m_shop?>"> <input type="hidden" name="m_orderid" value="<?php echo $m_orderid?>"> <input type="hidden" name="m_amount" value="<?php echo $m_amount?>"> <input type="hidden" name="m_curr" value="<?php echo $m_curr?>"> <input type="hidden" name="m_desc" value="<?php echo $m_desc?>"> <input type="hidden" name="m_sign" value="<?php echo $sign?>"> <?php /* <input type="hidden" name="form[ps]" value="2609"> <input type="hidden" name="form[curr[2609]]" value="USD"> */ ?> <?php /* Enable submerchant <input type="text" name="m_params" value="<?php echo $m_params?>"> */ ?> <?php /* <input type="hidden" name="m_cipher_method" value="AES-256-CBC"> */ ?> <button type="submit" class="btn btn-success"><?php echo lang('users transfer protect_confirm'); ?></button> </form> <?}else{?> <?}?> <?php // End Payeer form ?>
Спасибо конечно но эти тоже надо раскоментировать PHP: <?php /* <input type="hidden" name="form[ps]" value="2609"> <input type="hidden" name="form[curr[2609]]" value="USD"> */ ?> <?php /* Enable submerchant <input type="text" name="m_params" value="<?php echo $m_params?>"> */ ?> <?php /* <input type="hidden" name="m_cipher_method" value="AES-256-CBC"> */ ?>
PHP: <?php // Start Payeer form ?> <?if($code_method == "payeer"){?> <?php $m_shop = $merchant_account; // merchant ID $m_orderid = rand(100000000000, 900000000000); // invoice number in the merchant's invoicing system $m_amount = $total_amount; // invoice amount with two decimal places $m_curr = $symbol; // invoice currency $m_desc = base64_encode($user['username']); // invoice description encoded using a base64 $m_key = $payeer['api_value1']; // Forming an array for signature generation $arHash = array( $m_shop, $m_orderid, $m_amount, $m_curr, $m_desc ); // Forming an array for additional parameters $arParams = array( 'submerchant' => $this->settings->site_name, ); // Forming a key for encryption $key = md5('0000'.$m_orderid); // Encrypting additional parameters $m_params = urlencode(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, json_encode($arParams), MCRYPT_MODE_ECB))); // Adding parameters to the signature-formation array $arHash[] = $m_params; // Adding the secret key to the signature-formation array $arHash[] = $m_key; // Forming a signature $sign = strtoupper(hash('sha256', implode(':', $arHash))); ?> <form method="post" action="https://payeer.com/merchant/"> <input type="hidden" name="m_shop" value="<?php echo $m_shop?>"> <input type="hidden" name="m_orderid" value="<?php echo $m_orderid?>"> <input type="hidden" name="m_amount" value="<?php echo $m_amount?>"> <input type="hidden" name="m_curr" value="<?php echo $m_curr?>"> <input type="hidden" name="m_desc" value="<?php echo $m_desc?>"> <input type="hidden" name="m_sign" value="<?php echo $sign?>"> <input type="hidden" name="form[ps]" value="2609"> <input type="hidden" name="form[curr[2609]]" value="USD"> <input type="text" name="m_params" value="<?php echo $m_params?>"> <input type="hidden" name="m_cipher_method" value="AES-256-CBC"> <button type="submit" class="btn btn-success"><?php echo lang('users transfer protect_confirm'); ?></button> </form> <?}else{?> <?}?> <?php // End Payeer form ?> Ну как, все устраивает?)