Add Adyen payment details [Legacy]

Changed on

Use this method to add Adyen payment details, so that new payment details can be used for recurring payments.

Example use cases: a customer updates a card or wants to switch payment method to a card. For more information, see the docs.

<span style="color:red">WARNING:</span> This is a legacy endpoint. For new integrations, please use /connectors/adyen/payment-details (see Adyen Payment Setup for more information). For legacy integrations, please see the migration guide.

post/connectors/adyen/payment_details

Request

  • Base URL
    https://mediastoreapi-sandbox.cleeng.com
  • URL
    https://mediastoreapi-sandbox.cleeng.com/connectors/adyen/payment_details
  • Auth
    API key in header Authorization

Request body

paymentMethodIdinteger required

Publisher Adyen payment method ID

customerIPstring

The IP address of the end-user signing up for your service. Please note this IP address is also used to prevent fraud. (Make sure you send the end-user IP, and not those of any possible middleware)

Response

200

Example response

{
  "responseData": {
    "id": 123456789,
    "paymentGateway": "adyen",
    "paymentMethod": "card",
    "paymentMethodSpecificParams": {
      "variant": "mc",
      "lastCardFourDigits": "1111",
      "holderName": "T Cook",
      "cardExpirationDate": "10/2020"
    },
    "paymentMethodId": 787616068,
    "active": true
  }
}

Changes