From 8113028bf20140e540ede8a06c359145920aa053 Mon Sep 17 00:00:00 2001 From: Aleksandr Date: Tue, 15 Nov 2022 13:23:07 +0300 Subject: [PATCH] add payment notification --- async-api/waas-async-api.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/async-api/waas-async-api.yaml b/async-api/waas-async-api.yaml index 783c3f8..edecefc 100644 --- a/async-api/waas-async-api.yaml +++ b/async-api/waas-async-api.yaml @@ -31,7 +31,7 @@ channels: name: Payment completed notification description: | WaaS partner will receive notification when payment in Profee system get final status. - If block "error" is empty payment considered successful. + If block "state" is SUCCESSFUL payment considered successful. Otherwise, block "errors" will contain error code and human readable message, describing error reason. components: messages: @@ -139,9 +139,13 @@ components: walletId: type: string description: Wallet ID + state: + type: string + description: State of payment processing. Can be SUCCESSFUL or FAILED + example: SUCCESSFUL error: type: object - description: If empty payment completed successfully + description: If payment FAILED contains error details properties: code: type: string