---
title: "Finalize payment with Adyen"
method: POST
path: "/connectors/adyen/initial-payment/finalize"
---

# Finalize payment with Adyen

`POST /connectors/adyen/initial-payment/finalize`

Use `/connectors/adyen/initial-payment/finalize` to finalize payments that require additional action from customers. If initial payment returns `action` object, call this endpoint to finalize payment.
It is used for 3D Secure.

## Request body

- object
  - `orderId` integer, required — ID of Cleeng order (with Adyen paymentMethodId).
  - `details` object — The `state.data.details` from the Aden Drop-in `onAdditionalDetails` event. `details` object is optional, but if it is provided at least one of the following values is required: `redirectResult`, `threeds2ChallengeResult`, `threeDSResult` or `payload`.
    - `threeDSResult` string — The result of 3D Secure authentication returned by Drop-in for the native flow.
    - `redirectResult` string — The result of the redirect operation, directly taken from the URL params.
    - `threeds2ChallengeResult` string — Base64-encoded string returned by the Adyen Drop-in component after the challenge flow. It contains the following parameter: `transStatus`.
    - `payload` string — Payload appended to the `returnURL` as a result of the redirect.
  - `paymentData` string — The `paymentData` value from `/connectors/adyen/initial-payment` request. Required when `/connectors/adyen/initial-payment` response returns this value.

## Response `200`

200

- object
  - `responseData` object
    - `payment` object
      - `id` integer
      - `orderId` integer
      - `status` string
      - `totalAmount` number
      - `currency` string
      - `customerId` integer
      - `paymentGateway` string
      - `paymentMethod` string
      - `externalPaymentId` string
      - `couponId` unknown
      - `amount` number
      - `country` string
      - `offerType` string
      - `taxValue` number
      - `paymentMethodFee` number
      - `customerServiceFee` integer
      - `rejectedReason` unknown
      - `refundedReason` unknown
      - `paymentDetailsId` integer
      - `paymentOperation` string
  - `errors` unknown[]
    - unknown

## Other responses

- `400` — 400
- `401` — 401
- `422` — 422
- `500` — 500

---

[API](https://skmtc.net/cleeng/apis/mediastore-api.md) · [All operations](https://skmtc.net/cleeng/apis/mediastore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleeng/mediastore-api/versions/00cbfe7998a4/schema)
