After completing an order and selecting the "Pay with DCM platform" option, the Merchant sends a JWT request using the POST method. To enable this scenario, integration with the method must be configured beforehand.
The {url_host} of the DCM platform provided during integration is used.
The value of {url_host} differs between testing and production environments.
Process Description:
For Desktop Users: Merchant must display key elements of the payment page, including: DCM platform QR code and logos of participating banks.
For Mobile Users: The Merchant must generate clickable bank logos embedded with deep links. These deep links should include the JWT received in the response to the order creation request.
Bank logos in both scenarios are obtained using the “Emitters” query
Payload запиту
{
"sub": "623e460b-9ffd-41df", - Merchant identifier (uid)
"exp": 1719493881, - Order expiration time
"iat": 1707105971, - Order creation time
"amt": 1000, - Order amount
"cur": "UAH", - Order currency
"ref": "d4ee06f", - Order number in the Merchant's accounting system
"prp": "Payment for goods/services", - Payment purpose
"url": "https://www.city24.com", - Redirect URL for returning the buyer to the Merchant's website
"fri": { - Information about the ultimate beneficiary of the funds (optional)
"frn": "Kyivpark LLC", - Name
"frc": "0987654321", - Tax number
"fra": "UA55386780956567", - Account number (IBAN)
"frb": "300335", - Servicing bank's code
"frm": "7791" - Merchant category code
}
The "sub" field is provided by the Bank after the Merchant is registered with DCM platform
The "exp" and "iat" fields use the Unix Timestamp format. Can be used for convenience - https://www.unixtimestamp.com/
The "ref" field must contain a unique value.
The order is signed using the Merchant’s private key.