The response to the cancelPayment operation is made via the payment gateway after a request to cancel a payment.

It consists of HEADER and BODY of the cancelPaymentResponse type.

The structure of the cancelPaymentResponse message is as follows:

Name Type
cancelPaymentResult cancelPaymentResult

The structure of the cancelPaymentResult message is as follows:

Object Type
commonResponse commonResponse

The data returned in the response depends on the objects and attributes sent in the request.

However, whatever the operation, the responseCode attribute of the CommonResponse object must first be analyzed:

  • The value 0 indicates that the operation is successfully completed.
  • A value different from 0 involves an analysis of the responseCodeDetails attribute. It specifies the origin of the error.