mercadopago-sdk 3.7.0

dotnet add package mercadopago-sdk --version 3.7.0
                    
NuGet\Install-Package mercadopago-sdk -Version 3.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="mercadopago-sdk" Version="3.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="mercadopago-sdk" Version="3.7.0" />
                    
Directory.Packages.props
<PackageReference Include="mercadopago-sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add mercadopago-sdk --version 3.7.0
                    
#r "nuget: mercadopago-sdk, 3.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package mercadopago-sdk@3.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=mercadopago-sdk&version=3.7.0
                    
Install as a Cake Addin
#tool nuget:?package=mercadopago-sdk&version=3.7.0
                    
Install as a Cake Tool

Mercado Pago .Net

Portuguese / Spanish

CI NuGet Download count APM

The official Mercado Pago .NET SDK.

💡 Requirements

.NET 8.0+ and .NET Standard 2.1+.

If you are using previous versions of .NET Framework in your project, please refer to the older versions of the SDK.

📲 Installation

Use one of the following options, depending on your preferred environment.

From Visual Studio

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages....
  4. Click on the Browse tab and search for "mercadopago-sdk".
  5. Click on the mercadopago-sdk package, select the appropriate version and click Install.

Using the Package Manager

Install-Package mercadopago-sdk

Using the .NET Core command-line interface (CLI) tools

dotnet add package mercadopago-sdk

Using the NuGet Command Line Interface (CLI)

nuget install mercadopago-sdk

🌟 Getting Started

First time using Mercado Pago? Create your Mercado Pago account.

Copy your Access Token in the credentials panel and replace the text YOUR_ACCESS_TOKEN with it.

Simple usage

To generate a card token read the Checkout API documentation.

using System;
using MercadoPago.Config;
using MercadoPago.Client.Common;
using MercadoPago.Client.Order;
using MercadoPago.Resource.Order;
using System.Collections.Generic;

MercadoPagoConfig.AccessToken = "{{ACCESS_TOKEN}}";

var request = new OrderCreateRequest
{
    Type = "online",
    TotalAmount = "1000.00",
    ExternalReference = "ext_ref_1234",
    Transactions = new OrderTransactionRequest
    {
        Payments = new List<OrderPaymentRequest>
            {
                new OrderPaymentRequest
                {
                    Amount = "1000.00",
                    PaymentMethod = new OrderPaymentMethodRequest
                    {
                        Id = "master",
                        Type = "credit_card",
                        Token = "{{CARD_TOKEN}}",
                        Installments = 1,
                    }
                }
            }
    },
    Payer = new OrderPayerRequest
    {
        Email = "{{PAYER_EMAIL}}",
    }
};

var client = new OrderClient();
Order order = client.Create(request);
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(order, Newtonsoft.Json.Formatting.Indented));

Per-request configuration

All methods that make API calls accept an optional RequestOptions object. This can be used to configure some special options of the request, such as changing credentials or custom headers.

using MercadoPago.Client;
using MercadoPago.Http;
using MercadoPago.Client.Order;
using MercadoPago.Resource.Order;

var requestOptions = new RequestOptions();
requestOptions.AccessToken = "YOUR_ACCESS_TOKEN";
requestOptions.CustomHeaders.Add(Headers.IDEMPOTENCY_KEY, "YOUR_IDEMPOTENCY_KEY");

// ...
var client = new OrderClient();
Order order = client.Create(request, requestOptions);

Using a proxy server

using System.Net;
using System.Net.Http;
using MercadoPago.Config;
using MercadoPago.Http;

var handler = new HttpClientHandler
{
    Proxy = new WebProxy(proxyUrl),
    UseProxy = true,
};
var httpClient = new HttpClient(handler);
MercadoPagoConfig.HttpClient = new DefaultHttpClient(httpClient);

Configuring automatic retries

The SDK automatically retries requests on intermittent failures. The default max number of attempts is 2.

using MercadoPago.Config;
using MercadoPago.Http;

var retryStrategy = new DefaultRetryStrategy(5);
MercadoPagoConfig.RetryStrategy = retryStrategy;

📚 Documentation

Visit our Developer Site for further information regarding:

Check our SDK docs to explore all available functionalities.

🤝 Contributing

All contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.

Please read and follow our contribution guidelines. Contributions not following this guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.

❤️ Support

If you require technical support, please contact our support team at developers.mercadopago.com.

🏻 License

MIT license. Copyright (c) 2021 - Mercado Pago / Mercado Libre
For more information, see the LICENSE file.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on mercadopago-sdk:

Package Downloads
Eaf.Middleware.Application

Package Description

SabioGo_BE

BackEnd Sabio GO

MercadoPago.Extensions.Microsoft.DependencyInjection

This project is an extension of the MercadoPago SDK, it configures the injection of dependencies for projects that require it.

TildeAfip.Pagos.Sdk

SDK headless server-side de TildePagos publicado bajo la familia TildeAfip.Pagos para infraestructura y orquestación de pagos multi-provider. Unifica Stripe, Mercado Pago, dLocal, PayPal, AstroPay y Ualá detrás de un gateway común con routing, webhooks, replay, refunds, capture y observabilidad.

TildeAfip.Pagos.AspNetCore

Extensiones ASP.NET Core de TildePagos publicadas bajo la familia TildeAfip.Pagos para backends .NET 8, 9 y 10. Agrega health checks, endpoints operativos, replay, catálogo de medios de pago y helpers para webhooks HTTP por provider.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.7.0 5,139 8/27/2026
3.6.0 306 8/26/2026
3.5.0 2,884 8/11/2026
3.4.0 2,498 8/4/2026
3.3.1 4,231 7/23/2026
3.3.0 6,760 7/1/2026
3.2.0 11,362 6/1/2026
3.1.0 3,258 5/21/2026
3.0.2 287 5/21/2026
3.0.1 296 5/21/2026
3.0.0 300 5/21/2026
2.12.1 12,154 4/17/2026
2.12.0 312 4/17/2026
2.11.0 41,579 11/26/2025
2.10.1 7,175 10/24/2025
2.10.0 17,068 9/10/2025
2.9.0 6,045 8/28/2025
2.8.0 17,573 6/30/2025
2.5.0 27,761 4/2/2025
2.4.2 12,898 2/17/2025
Loading failed