Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Method for showing the status of the current invoice payment

Tip
iconfalse
title

URI

POST api/invoicer/payments/checkStatus

...

Request:

Ключ

Key

Опис

Description

Тип

Type

Обов'язковість

Mandatory

Приклад

Example

params





sessionId

id сесії клієнта

client session id 

string, uuid

так

yes

"000ab70b-ef76-4385-a0f5-a98693c716f1"

paymentId

payment id

платежу

string, uuid

так

yes

"08eff720-9432-4951-a698-94e24db59e66"

invoiceId

invoice id

інвойсу

string, uuid

так

yes

"f9f57a53-fe87-465d-8f7a-795251a6ba46"

Example of a query
Code Block
collapse
languagejs
themeConfluence
titleПриклад запиту
linenumberstrue
true
{
	"params": {
		"sessionId": "613f7045-03a2-4bbb-8ff8-e2202e71d41f",
        "paymentId": "02984d64-12d2-45d9-8329-f5ff92169e38",
        "invoiceId": "f9f57a53-fe87-465d-8f7a-795251a6ba46"
	}
}

Відповідь:

Ключ

Key

Опис

Description

Тип

Type

Приклад

Example

status

Статус

Status. 0 -

помилка

error, 1 -

успіх

success

integer

1

data




id

операції

operations

string, uuid

Code Block
"48cae638-2f4b-434c-aafa-a4b9ced4b486"

pluginId

bank id

банку

integer

2

amount

сума платежу

payment amount

integer

100

status

статус платежу інвойсу

invoice payment status

string

"NEEDS_CONFIRMATION"

confirmation


object


confirmation.{}.type

тип карти оплати

type of payment card

string

Code Block
"LOOKUP"

confirmation.{}.confirmationsLeft

спроби підтвердження

confirmation attempts

integer

Code Block
3

confirmation.{}.url

адреса сторінки процесингу

processing page address

string

Code Block
"https://3ds.ukrsotsbank.com:443/way4acs/pa?id=XAFO8XZ_Fa-UpxbzASJniw"

confirmation.{}.form.PaReq

дані авторизації на сторінці процесингу

authorization data on the processing page

string


confirmation.{}.redirect.url

адреса переадресації зі сторінки процесингу

redirect address from the processing page

string

Code Block
"https://api.zero.uapay.ua/api/payments/ecom/confirm"

confirmation.{}.redirect.params.id

параметр ідентифікатора платежу

payment ID parameter



paymentStatus

статус платежу з системи інвойсера

payment status from the invoice system

string

"NEW"

Example of an answer for LOOKUP card
Code Block
linenumbers
languagejs
themeConfluence
titleПриклад відповіді для LOOKUP карти
true
collapsetrue
{
    "status": 1,
    "data": {
        "id": "02984d64-12d2-45d9-8329-f5ff92169e38",
        "status": "NEEDS_CONFIRMATION",
        "amount": 100,
        "pluginId": 2,
        "confirmation": {
            "type": "LOOKUP",
            "confirmationsLeft": 3
        },
		"paymentStatus": "NEW"
    }
}
Example of an answer for 3DS card
Code Block
languagejs
themeConfluence
titleПриклад відповіді для 3DS карти
linenumberstrue
collapsetrue
{
    "status": 1,
    "data": {
        "id": "baa27404-b440-4698-859a-cf9e328c8589",
        "status": "NEEDS_CONFIRMATION",
        "amount": 3000,
        "pluginId": 1,
        "key": "Fb64oESWzABBCf9fjbBsPKJyhxFfW7V6xCATquk3R46P.jp45ehf1105021748214",
        "confirmation": {
            "type": "3DS",
            "url": "https://3ds.ukrsotsbank.com:443/way4acs/pa?id=XAFO8XZ_Fa-UpxbzASJniw",
            "form": {
                "PaReq": "eJxVUtFu2zAMfM5fGP0AS7JjWwlUAVmDrcHm1ugcDNnLYChE425RXMne0nx9STkpMgGCSd6JNI9U9c4BLL+DGRxoVYL3zTNE7fb2plo8wesvkU3TTM5yURRS3uiJCmE9mai/4Hx7sFrEPE4Uu7iIdI3VWVZIwQuR5DzPklQqRlEES3Bm19ge7YlqzOun1YPOkhwrKHZ2CdmDWy01H08yfpAxholgmz3oGnwfXTJGdeO/tfZ3pFgAiWUOg+3dm5Z8qtjFIWBwf/Su77s5YyIpsAUei3mKh5XVij2B7w7WQ+UOBiVp7XP84jvF6BU+ZldNqGog24/1ju1Wl/Wal6f19LHeHB9OZvq4XPwrx3urGDGIuW160AkXUoiURyKfZ+k8LRQL8aDNnn5Xp2k84yjN6BHQUcHFBSXwOhK6HpwDa970TCL64REER2wMkIcj+7Cppas21N39eTqmR7UXm/zHz+Xdutl1Q3WSL+JrvdmvMv7l872hmQXSOXeL8ooZlyF5G7RWjNJhgbA4pF3YMbT+2713DWnAvQ=="
            }
        },
        "redirect": {
            "url": "https://api.zero.uapay.ua/api/payments/ecom/confirm",
            "params": {
                "id": "baa27404-b440-4698-859a-cf9e328c8589"
            }
        },
        "paymentStatus": "NEW"
    }
}

...