💳Payment on the Merchant's website

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 "Emitters" arrow-up-rightmethod must be configured beforehand.

Endpoint

{{url_host}}//api/v1/merchants/order?jwt={{JWT}}&custom=true

circle-info

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:

  1. For Desktop Users: Merchant must display key elements of the payment page, including: DCM platform QR code and logos of participating banks.

  2. 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.

circle-info

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
 }
circle-exclamation

Response (example)

In case of order expiration, an Expiration callback in an open format is sent to the Merchant's address.

Example expiration callback: