Skip to content

Commit

Permalink
1.8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 11, 2017
1 parent f227654 commit 8fcc660
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 21 deletions.
6 changes: 3 additions & 3 deletions Facade/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function _get($id) {
* 2017-02-10
* @override
* @see \Df\StripeClone\Facade\Customer::cardAdd()
* @used-by \Df\StripeClone\Charge::newCard()
* @used-by \Df\StripeClone\P\Charge::newCard()
* @param C $c
* @param string $token
* @return string
Expand All @@ -40,7 +40,7 @@ function cardAdd($c, $token) {
* 2017-02-10
* @override
* @see \Df\StripeClone\Facade\Customer::create()
* @used-by \Df\StripeClone\Charge::newCard()
* @used-by \Df\StripeClone\P\Charge::newCard()
* @param array(string => mixed) $p
* @return C
*/
Expand All @@ -50,7 +50,7 @@ function create(array $p) {return C::create($p);}
* 2017-02-10
* @override
* @see \Df\StripeClone\Facade\Customer::id()
* @used-by \Df\StripeClone\Charge::newCard()
* @used-by \Df\StripeClone\P\Charge::newCard()
* @param C $c
* @return string
*/
Expand Down
27 changes: 13 additions & 14 deletions Charge.php → P/Charge.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
namespace Dfe\Omise;
namespace Dfe\Omise\P;
// 2016-11-13
/** @method Settings s() */
final class Charge extends \Df\StripeClone\Charge {
/** @method \Dfe\Omise\Settings s() */
final class Charge extends \Df\StripeClone\P\Charge {
/**
* 2017-02-11
* @override
* @see \Df\StripeClone\Charge::cardIdPrefix()
* @used-by \Df\StripeClone\Charge::usePreviousCard()
* @see \Df\StripeClone\P\Charge::cardIdPrefix()
* @used-by \Df\StripeClone\P\Charge::usePreviousCard()
* @return string
*/
protected function cardIdPrefix() {return 'card';}
Expand All @@ -16,11 +16,11 @@ protected function cardIdPrefix() {return 'card';}
* 2016-11-13
* https://www.omise.co/charges-api#charges-create
* @override
* @see \Df\StripeClone\Charge::pCharge()
* @used-by \Df\StripeClone\Charge::request()
* @see \Df\StripeClone\P\Charge::p()
* @used-by \Df\StripeClone\P\Charge::request()
* @return array(string => mixed)
*/
protected function pCharge() {return !$this->s()->_3DS() ? [] : [
protected function p() {return !$this->s()->_3DS() ? [] : [
/**
* 2016-12-24
* «(optional) The url where we will return the customer
Expand All @@ -41,7 +41,6 @@ protected function pCharge() {return !$this->s()->_3DS() ? [] : [
*
* In the Omise case we set the URL for 3D Secure return dynamically (here),
* so we prefer to use separate URLs for the Webhooks and 3D Secure return.
* @see \Dfe\Omise\Controller\CustomerReturn\Index
*/
'return_uri' => $this->customerReturn()
];}
Expand All @@ -55,9 +54,9 @@ protected function pCharge() {return !$this->s()->_3DS() ? [] : [
* 2) в запросе на сохранение банковской карты для будущего повторного использования
* У Omise название этого параметра для обоих запросов совпадает.
* @override
* @see \Df\StripeClone\Charge::k_CardId()
* @used-by \Df\StripeClone\Charge::newCard()
* @used-by \Df\StripeClone\Charge::request()
* @see \Df\StripeClone\P\Charge::k_CardId()
* @used-by \Df\StripeClone\P\Charge::newCard()
* @used-by \Df\StripeClone\P\Charge::request()
* @return string
*/
protected function k_CardId() {return 'card';}
Expand All @@ -66,8 +65,8 @@ protected function k_CardId() {return 'card';}
* 2017-02-18
* Does Omise support dynamic statement descriptors? https://mage2.pro/t/2822
* @override
* @see \Df\StripeClone\Charge::k_DSD()
* @used-by \Df\StripeClone\Charge::request()
* @see \Df\StripeClone\P\Charge::k_DSD()
* @used-by \Df\StripeClone\P\Charge::request()
* @return string
*/
protected function k_DSD() {return null;}
Expand Down
16 changes: 16 additions & 0 deletions P/Reg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
namespace Dfe\Omise\P;
// 2017-06-11
final class Reg extends \Df\StripeClone\P\Reg {
/**
* 2017-06-11
* Ключ, значением которого является токен банковской карты.
* Этот ключ передаётся как параметр в запросе на сохранение банковской карты
* для будущего повторного использования при регистрации нового покупателя.
* @override
* @see \Df\StripeClone\P\Reg::k_CardId()
* @used-by \Df\StripeClone\P\Reg::request()
* @return string
*/
protected function k_CardId() {return 'card';}
}
2 changes: 1 addition & 1 deletion Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ final class Settings extends \Df\StripeClone\Settings {
/**
* 2016-12-24
* «Whether the 3D Secure Validation is enabled for your Omise account»
* @used-by \Dfe\Omise\Charge::pCharge()
* @used-by \Dfe\Omise\P\Charge::p()
* @used-by \Dfe\Omise\Init\Action::redirectUrl()
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion W/Event/Charge/Complete.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ final class Complete extends \Dfe\Omise\W\Event {
/**
* 2017-01-15
* Здесь, в оповещении «charge.complete», успешное состояние charge зависит указанного нами ранее
* при создании charge в методе @see \Dfe\Omise\Charge::pCharge() значения флага «capture»:
* при создании charge в методе @see \Dfe\Omise\P\Charge::p() значения флага «capture»:
* https://github.com/mage2pro/omise/tree/1.1.2/Charge.php#L27
* Если мы этот флаг устанавливали, то здесь успешным состоянием charge будет «successful».
* Если мы этот флаг не устанавливали, то здесь успешным состоянием charge будет «pending».
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/omise"
,"version": "1.8.11"
,"version": "1.8.12"
,"description": "The «Omise» payment extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/omise"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.5.25", "omise/omise-php": "^2.5.0"}
,"require": {"mage2pro/core": ">=2.7.0", "omise/omise-php": "^2.5.0"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Omise\\": ""}}
,"keywords": [
"3D Secure"
Expand Down

0 comments on commit 8fcc660

Please sign in to comment.