Cancel Payment (two cards)
Cancels the authorization of one card of a two-card payment, using that card’s transaction id.
id of that card’s AUTHORIZE transaction from payment_method.payment_methods[].transactions. To cancel the whole payment in one request, use Cancel or Refund a Payment (two cards).
The response is 201 with the payment in the v2 shape.
This request requires an X-Idempotency-Key. See Authentication for details.Authorizations
Headers
Unique key for this request. Required on every v2 payment request. Retry an unclear outcome with the same key. Without it the request is rejected with 400 INVALID_PARAMETERS: "The header 'x-idempotency-key' is required."
Path Parameters
The id of the payment returned by POST /v2/payments.
The id of the card transaction to operate on, from payment_method.payment_methods[].transactions[].
Body
Identification of the payment transaction defined by the merchant (MAX 255; MIN 3).
Description of the cancellation.(MAX 255; MIN 3)
Reason for the operation. Possible values are DUPLICATE, FRAUDULENT and REQUESTED_BY_CUSTOMER.
DUPLICATE, FRAUDULENT, REQUESTED_BY_CUSTOMER Response
The payment after the operation, in the v2 shape
A payment funded by two cards.
Aggregated status of the payment. See Pay with two cards.
Aggregated sub status, for example APPROVED, AUTHORIZED, PARTIALLY_CAPTURED, PARTIALLY_REFUNDED, REFUND_RETRY_IN_PROCESS or CANCEL_RETRY_IN_PROCESS.
true for a payment funded by two cards.
Number of cards that fund the payment: 2.
true when the SDK must continue the payment, for example to run a 3DS challenge.
Total of the payment.
The payer, as sent in the request.
DIRECT, REDIRECT, SDK_CHECKOUT