Cancellations - Net - Mercado Pago Developers

Create cancellation

It is possible to cancel a specific purchase from the payment ID using the SDK below. For details on request parameters, check the Cancellation API.

          
MercadoPagoConfig.AccessToken = "YOUR_ACCESS_TOKEN";
          
var client = new MercadoPago.Client.Payment.PaymentClient();
client.Cancel(payment_id);