Skip to content

Commit

Permalink
0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 3, 2017
1 parent d1059be commit 4696cf3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 17 additions & 2 deletions Response.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
namespace Dfe\YandexKassa;
use Df\PaypalClone\W\Exception\InvalidSignature;
use Df\Xml\G;
use Dfe\YandexKassa\W\Event as Ev;
use Magento\Framework\App\Response\Http;
Expand Down Expand Up @@ -96,7 +97,7 @@ final function __toString() {return df_xml_g("{$this->_ev->t()}Response", [], [G
* Ошибка разбора запроса
* Магазин не в состоянии разобрать запрос. Окончательная ошибка.
*/
'code' => 0
'code' => !$this->_ex ? 0 : ($this->_ex instanceof InvalidSignature ? 1 : 200)
// 2017-10-03
// «Yandex.Checkout transaction ID. Must match the invoiceId field in the request.»
// «Идентификатор транзакции в Яндекс.Кассе. Должен дублировать поле invoiceId запроса.»
Expand Down Expand Up @@ -160,7 +161,21 @@ final function __toString() {return df_xml_g("{$this->_ev->t()}Response", [], [G
// «Store ID. Must match the `shopId` field in the request.»
// «Идентификатор магазина. Должен дублировать поле `shopId` запроса.»
,'shopId' => $this->_ev->r('shopId')
]]);}
/**
* 2017-10-03
* «Additional text explanation of the merchant's response.
* This is usually used for more detailed information about errors. Optional field.»
* «Дополнительное текстовое пояснение ответа магазина.
* Как правило, используется как дополнительная информация об ошибках. Необязательное поле.»
* String(64)
*/
,'techMessage' => 'Author: Dmitry Fedyuk (https://mage2.pro, [email protected])'
] + (!$this->_ex ? [] : [
// 2017-10-03
// «Text explanation if the payment is not accepted» / «Текстовое пояснение в случае отказа принять платеж»
// String(255)
'message' => df_chop($this->_ex->message(), 255)
])]);}

/**
* 2017-10-02
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/yandex-kassa"
,"version": "0.3.7"
,"version": "0.3.8"
,"description": "The «Yandex.Kassa» (Яндекс.Касса, Yandex.Checkout) payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/yandex-kassa"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.12.35"}
,"require": {"mage2pro/core": ">=2.12.39"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\YandexKassa\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit 4696cf3

Please sign in to comment.