v1

latestOpenAPI 3.1.02026-07-241080412.6 KB

Finalize payment with Adyen

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.

post/connectors/adyen/initial-payment/finalize

Request body

orderIdinteger required

ID of Cleeng order (with Adyen paymentMethodId).

paymentDatastring

The paymentData value from /connectors/adyen/initial-payment request. Required when /connectors/adyen/initial-payment response returns this value.

Response

200

Example response

{
  "responseData": {
    "payment": {
      "id": 1538290265,
      "orderId": 359630536,
      "status": "authorized",
      "totalAmount": 20.9963,
      "currency": "EUR",
      "customerId": 686909867,
      "paymentGateway": "adyen",
      "paymentMethod": "card",
      "externalPaymentId": "N3MMRD2SDV5X8N82",
      "amount": 16.26,
      "country": "PL",
      "offerType": "subscription",
      "taxValue": 3.74,
      "paymentMethodFee": 0.81,
      "paymentDetailsId": 208583452,
      "paymentOperation": "initial-payment"
    }
  }
}