M
M
mrfinch272020-01-21 10:23:11
1C-Bitrix
mrfinch27, 2020-01-21 10:23:11

Yandex.Checkout and Bitrix, how to connect?

The site has a checkout.
all come true and fighting.
payment does not go through.
tech support response:
Payment failed because your store returned an empty response to checkOrder.
Make sure there are no spaces or invalid characters in the query response template.
Log:
[2020-01-20T22:33:37.284+03:00] INFO [int-ssl-services19] [POST/layout_sevices/shop_info/paymentApproval] [22ed1dcd4ca0c1c6] [] [CommonHttpClient] sendHttpRequest(): requestData=orderNumber= 574
orderSumAmount=192.00
shopArticleId=1647882
cms_name=1C-Bitrix
paymentPayerCode=42000400000002
cdd_rrn=002019067501
paymentType=AC
requestDatetime=2020-01-20T22:33:37.283+03:00
RU =
cps_user_country_code cdd_response_code = 00
orderCreatedDatetime = 2020-01-20T22: 33: 22.286 + 03: 00
action = checkOrder
BX_HANDLER = YANDEX
shopId = 658,273
scid = 1308579
shopSumBankPaycash = 1001
BuyButton = Pay
shopSumCurrencyPaycash = 643
rebillingOn = false
orderSumBankPaycash = 1001
orderSumCurrencyPaycash = 643
unilabel = 25b81429-000f-5000-8000-10ecf6950174
cdd_pan_mask = 427638 | 3627
customerNumber = 1
environment = Live
InvoiceID = 2002241710576
cdd_auth_code = 208938
BX_PAYSYSTEM_CODE = 10
shopSumAmount = 185.28 the
md5 = ECB6650EAFC1317B76685682F5830DA4
[2020-01-20T22:33:37.426+03:00] INFO [int-ssl-services19] [POST/layout_sevices/shop_info/paymentApproval] [22ed1dcd4ca0c1c6] [] [CommonHTTPSCAConnector] 141 ms for https://www.zolotoygus .ru/bitrix/tools/sale_ps_res...
[2020-01-20T22:33:37.426+03:00] WARN [int-ssl-services19] [POST/layout_sevices/shop_info/paymentApproval] [22ed1dcd4ca0c1c6] [] [CommonHttpClient ] Response is not XML: response=
In this situation, funds were sent to the client's bank for a refund.
file /bitrix/tools/sale_ps_result.php looks like:

<?
use \Bitrix\Main\Application;
use \Bitrix\Sale\PaySystem;

define("STOP_STATISTICS", true);
define('NO_AGENT_CHECK', true);
define('NOT_CHECK_PERMISSIONS', true);
define("DisableEventsCheck", true);
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");

global $APPLICATION;

if (CModule::IncludeModule("sale"))
{
  $context = Application::getInstance()->getContext();
  $request = $context->getRequest();

  $item = PaySystem\Manager::searchByRequest($request);
  if ($item !== false)
  {
    $service = new PaySystem\Service($item);
    if ($service instanceof PaySystem\Service)
      $result = $service->processRequest($request);
  }
}

$APPLICATION->FinalActions();
die();

does anyone have working examples of files
bitrix/tools/sale_ps_fail.php
bitrix/tools/sale_ps_success.php
bitrix/tools/sale_ps_result.php
or is the problem something else?
thanks in advance for the tips.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question