-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82a0dd1
commit c9aabd2
Showing
10 changed files
with
171 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
namespace Dfe\Stripe\W; | ||
/** | ||
* 2017-03-15 | ||
* @see \Dfe\Stripe\W\Event\Charge\Captured | ||
* @see \Dfe\Stripe\W\Event\Charge\Refunded | ||
*/ | ||
abstract class Event extends \Df\StripeClone\W\Event { | ||
/** | ||
* 2017-01-04 | ||
* 2017-01-06 | ||
* Сообщение от платёжной системы — это иерархический JSON. | ||
* На верхнем уровне иерархии расположены метаданные: | ||
* *) тип сообщения (например: «charge.captured»). | ||
* *) идентификатор платежа в платёжной системе | ||
* *) тестовый ли платёж или промышленный | ||
* *) версия API | ||
* *) и.т.п. | ||
* Конкретные данные сообщения расположены внутри иерархии по некоему пути. | ||
* Этот путь и возвращает наш метод. | ||
* 2017-02-14 | ||
* [Stripe] An example of the «charge.captured» event (being sent to a webhook) | ||
* https://mage2.pro/t/2745 | ||
* @override | ||
* @see \Df\StripeClone\W\Event::roPath() | ||
* @used-by \Df\StripeClone\W\Event::k_pid() | ||
* @used-by \Df\StripeClone\W\Event::ro() | ||
* @return string | ||
*/ | ||
protected function roPath() {return 'data/object';} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
namespace Dfe\Stripe\W\Event\Charge; | ||
use Dfe\Stripe\Method as M; | ||
// 2017-03-15 | ||
final class Captured extends \Dfe\Stripe\W\Event { | ||
/** | ||
* 2017-01-06 | ||
* @override | ||
* @see \Df\StripeClone\W\Event::ttCurrent() | ||
* @used-by \Df\StripeClone\W\Event::id() | ||
* @used-by \Df\StripeClone\W\Strategy\Charge::action() | ||
* @return string | ||
*/ | ||
function ttCurrent() {return M::T_CAPTURE;} | ||
|
||
/** | ||
* 2017-01-06 | ||
* @override | ||
* @see \Df\StripeClone\W\Event::ttParent() | ||
* @used-by \Df\StripeClone\W\Nav::pidAdapt() | ||
* @return string | ||
*/ | ||
function ttParent() {return M::T_AUTHORIZE;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
namespace Dfe\Stripe\W\Event\Charge; | ||
use Dfe\Stripe\Method as M; | ||
// 2017-03-15 | ||
final class Refunded extends \Dfe\Stripe\W\Event { | ||
/** | ||
* 2017-01-06 | ||
* @override | ||
* @see \Df\StripeClone\W\Event::ttCurrent() | ||
* @used-by \Df\StripeClone\W\Event::id() | ||
* @used-by \Df\StripeClone\W\Strategy\Charge::action() | ||
* @return string | ||
*/ | ||
function ttCurrent() {return M::T_REFUND;} | ||
|
||
/** | ||
* 2016-12-16 | ||
* @override | ||
* @see \Df\StripeClone\W\Event::ttParent() | ||
* @used-by \Df\StripeClone\W\Nav::pidAdapt() | ||
* @return string | ||
*/ | ||
function ttParent() {return M::T_CAPTURE;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.