PAYMENT_FAILURE

This notification is triggered in case of a split payment is failed.

Common fields

The table below lists the fields that are present in each Adyen MarketPay notification and provide general information about the event that triggered this notification.

Name Type Returned by default Description
eventType String (tick)

This notification event's type.

For this event, it is PAYMENT_FAILURE.

eventDate DateTime (tick)

NEW IN V4 The date and time when an event has been completed.

executingUserKey String (tick)

A user or process that has triggered the notification.

live Boolean (tick)

Informs about the origin of the notification:

  • true: the notification originated from the live environment.
  • false: the notification originated from the test environment.
pspReference String (tick) PSP Reference of the notification.
content Object (tick)

Notification message content, which is specific for each notification type.

For the detailed description of its structure, see the table below.

Content field structure

The content field of this notification contains the following elements.

Name Type Returned by default Description
errorFields Array (error)

Missing/Invalid fields.

This array contains the ErrorFieldType elements.

errorMessage Object (tick) Error message (see MarketPay error codes).
  code String (tick) Message code.
  text String (tick) Message text.

Code example: Sent to a marketplace in case payment details are incomplete

{
   "eventType":"PAYMENT_FAILURE",
   "eventDate":"2018-04-23T13:13:44+02:00",
   "executingUserKey":"ws",
   "live":true,
   "pspReference":"Test_PAYMENT_FAILURE",
   "content":{
      "errorFields":[
         {
            "ErrorFieldType":{
               "errorCode":1,
               "errorDescription":"Field is missing",
               "fieldType":{
                  "field":"AccountHolderDetails.accountNumber",
                  "fieldName":"accountNumber"
               }
            }
         }
      ],
      "errorMessage":{  
         "code":"10_004",
         "text":"Account with accountCode='332415436' does not exist"
      }
   }
}