Skip to content

Commit

Permalink
2.12.18
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 25, 2017
1 parent edc36b8 commit d7740ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions PaypalClone/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ abstract protected function k_RequestId();

/**
* 2016-08-27
* 2017-09-25
* The method can return null if the request does not need a signature.
* Currently, only the Yandex.Market charge requests do not use a signature:
* @see \Dfe\YandexKassa\Charge::k_Signature()
* https://tech.yandex.com/money/doc/payment-solution/payment-form/payment-form-http-docpage
*
* @used-by \Df\PaypalClone\Charge::p()
* @see \Dfe\AllPay\Charge::k_Signature()
* @see \Dfe\Dragonpay\Charge::k_Signature()
Expand All @@ -86,7 +92,7 @@ abstract protected function k_RequestId();
* @see \Dfe\SecurePay\Charge::k_Signature()
* @see \Dfe\Tinkoff\Charge::k_Signature()
* @see \Dfe\YandexKassa\Charge::k_Signature()
* @return string
* @return string|null
*/
abstract protected function k_Signature();

Expand Down Expand Up @@ -220,7 +226,13 @@ final static function p(Method $m) {
,$i->k_Email() => $i->customerEmail()
,$i->k_MerchantId() => $s->merchantID()
,$i->k_RequestId() => $id
]) + $i->pCharge();
return [$id, $p + [$i->k_Signature() => Signer::signRequest($i, $p)]];
]) + $i->pCharge();;
/**
* 2017-09-25
* The Yandex.Market charge requests do not use a signature:
* @see \Dfe\YandexKassa\Charge::k_Signature()
* https://tech.yandex.com/money/doc/payment-solution/payment-form/payment-form-http-docpage
*/
return [$id, $p + ((!$kS = $i->k_Signature()) ? [] : [$kS => Signer::signRequest($i, $p)])];
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "2.12.17"
,"version": "2.12.18"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit d7740ef

Please sign in to comment.