add payment notification

master
Aleksandr 2022-11-15 13:23:07 +03:00
parent 78e8cd2d43
commit 8113028bf2
1 changed files with 6 additions and 2 deletions

View File

@ -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