Skip to content

Commit

Permalink
0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Oct 3, 2017
1 parent 4696cf3 commit 2910f03
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
30 changes: 28 additions & 2 deletions W/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,32 @@
* 2017-10-02 `[Yandex.Kassa] An example of a «checkOrder» notification`: https://mage2.pro/t/4607
*/
final class Event extends \Df\PaypalClone\W\Event {
/**
* 2017-10-03
* @override
* @see \Df\PaypalClone\W\Event::isSuccessful()
* @used-by ttCurrent()
* @used-by \Df\Payment\W\Strategy\ConfirmPending::_handle()
* @return bool
*/
function isSuccessful() {return 'cancelOrder' !== $this->status();}

/**
* 2017-09-14 The type of the current transaction.
* «Operation Statuses»:
* https://github.com/QIWI-API/pull-payments-docs/blob/40d48cf0/_statuses_en.html.md#operation-statuses
* «Статусы операций»:
* https://github.com/QIWI-API/pull-payments-docs/blob/40d48cf0/_statuses_ru.html.md#Статусы-операций
* @override
* @see \Df\PaypalClone\W\Event::ttCurrent()
* @used-by \Df\Payment\W\Strategy\ConfirmPending::_handle()
* @used-by \Df\PaypalClone\W\Nav::id()
* @used-by \Dfe\Qiwi\W\Handler::strategyC()
*/
function ttCurrent() {return !$this->isSuccessful() ? parent::ttCurrent() : dfa([
'checkOrder' => self::T_INFO, 'paymentAviso' => self::T_CAPTURE
], $this->status());}

/**
* 2017-09-25
* «Unique transaction number in Yandex.Checkout» / «Уникальный номер транзакции в Яндекс.Кассе»
Expand Down Expand Up @@ -167,11 +193,11 @@ protected function k_pid() {return 'orderNumber';}
protected function k_signature() {return 'md5';}

/**
* 2017-09-24
* 2017-10-03
* @override
* @see \Df\PaypalClone\W\Event::k_status()
* @used-by \Df\PaypalClone\W\Event::status()
* @return string|null
*/
protected function k_status() {return null;}
protected function k_status() {return 'action';}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/yandex-kassa"
,"version": "0.3.8"
,"version": "0.3.9"
,"description": "The «Yandex.Kassa» (Яндекс.Касса, Yandex.Checkout) payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/yandex-kassa"
Expand Down

0 comments on commit 2910f03

Please sign in to comment.