From 92d05626a6c602c3ce6e6fd225ba8a1a4dff4cec Mon Sep 17 00:00:00 2001 From: enisn Date: Thu, 21 Oct 2021 15:11:17 +0300 Subject: [PATCH] Add Distributed Events section to payment README --- modules/payment/README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/payment/README.md b/modules/payment/README.md index 2e896ac..ae45ff6 100644 --- a/modules/payment/README.md +++ b/modules/payment/README.md @@ -49,6 +49,20 @@ TODO } ``` - - \ No newline at end of file + + +--- + + + +## Distributed Events + +- `Payment.Completed` (**PaymentRequestCompletedEto**): Published when a payment is completed. Completion can be triggered via webhook or callback. Source doesn't affect to the event. Event will be triggered once. + - `PaymentRequestId`: Represents PaymentRequest entity Id. + - `ExtraProperties`: Represents ExtraProperties of PaymentRequest entity. You can use this properties to find your related objects to that payment. +- `Payment.Failed`(**PaymentRequestFailedEto**): Published when a payment is failed. + - `PaymentRequestId`: Represents PaymentRequest entity Id. + - `FailReason`: Reason of failure from payment provider (PayPal) + - `ExtraProperties`: Represents ExtraProperties of PaymentRequest entity. +