UAPAY - національний платіжний сервіс

A2C Complete - completion of enrollment initiation

RequiredA method for completing the initiation of the transfer of funds to the recipient's card. This action can be performed after A2C Initiate - initiation of enrollment operation, the payment must be of type A2C and status WAITING_COMPLETE, and the transaction must be of type RECEIVE and status NEEDS_COMPLETE. After the action is performed, the process of crediting by the acquirer's bank begins and the payment can be successful (payment status FINISHED) or unsuccessful (payment status REJECTED).

Request method - POST

Request path - /api/p2p/payments/a2c/complete

Parameters for forming the request body in JSON format

Key

Data type

Required?

Description

Example

Key

Data type

Required?

Description

Example

params.sessionId

string

yes

client session id

"445fb296-8653-4646-8475-5796c97d16ff"

params.paymentId

string

yes, one of these parameters: params.paymentId, params.operationId, or params.externalId

payment id

"25f2f3d4-0406-499b-bb9c-577596ad9ef6"

params.operationId

string

operation id

"d977281d-c4c5-4c81-b457-791767bb0a02"

params.externalId

string

external id of the operation

"116f3329-63b8-4eef-9e88-272bd8f697ac"

data.cardTo.pan

string

yes, one of these parameters: data.cardTo.pan or data.cardTo.id

credit card number

The customer can use this option only with a PCI DSS certificate

"4111111111111111"

data.cardTo.id

string

credit card id
created in the UAPAY system


"cf5a5962-eea3-481e-a764-aa8e51e29544"

Request body examples

{ "params": { "sessionId": "445fb296-8653-4646-8475-5796c97d16ff", "paymentId": "25f2f3d4-0406-499b-bb9c-577596ad9ef6" }, "data": { "cardTo": { "pan": "4111111111111111" } } }

or

{ "params": { "sessionId": "445fb296-8653-4646-8475-5796c97d16ff", "externalId": "116f3329-63b8-4eef-9e88-272bd8f697ac" }, "data": { "cardTo": { "id": "cf5a5962-eea3-481e-a764-aa8e51e29544" } } }

Response body parameters in JSON format

Key

Data type

Description

Example

Key

Data type

Description

Example

data.paymentId

string

payment id

"25f2f3d4-0406-499b-bb9c-577596ad9ef6"

data.operationId

string

operation id

"d977281d-c4c5-4c81-b457-791767bb0a02"

data.externalId

string

external id of the operation

"116f3329-63b8-4eef-9e88-272bd8f697ac"

data.amount

number

payment amount, in kopecks

15000

data.commissionAmount

number

the amount of the payment commission from the client, in kopecks

300

Example of a response body

{ "status": 1, "data": { "paymentId": "25f2f3d4-0406-499b-bb9c-577596ad9ef6", "operationId": "d977281d-c4c5-4c81-b457-791767bb0a02", "externalId": "116f3329-63b8-4eef-9e88-272bd8f697ac", "amount": 15000, "commissionAmount": 300 } }

 

UAPAY - національний платіжний сервіс
pay@uapay.ua