mercadopago-sdk 1.0.56

There is a newer version of this package available.
See the version list below for details.
dotnet add package mercadopago-sdk --version 1.0.56
NuGet\Install-Package mercadopago-sdk -Version 1.0.56
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="1.0.56" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add mercadopago-sdk --version 1.0.56
#r "nuget: mercadopago-sdk, 1.0.56"
#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.
// Install mercadopago-sdk as a Cake Addin
#addin nuget:?package=mercadopago-sdk&version=1.0.56

// Install mercadopago-sdk as a Cake Tool
#tool nuget:?package=mercadopago-sdk&version=1.0.56

Mercado Pago SDK for .Net

This library provides developers with a simple set of bindings to the Mercado Pago API.

.Net versions supported:

3.5 .Net Framework or Major

Quick Start

1. You have to import the Mercado Pago SDK.

using MercadoPago;

2. Setup your credentials

For Web-checkout:

MercadoPago.SDK.ClientId = "YOUR_CLIENT_ID";
MercadoPago.SDK.ClientSecret = "YOUR_CLIENT_SECRET";

For API or custom checkout:

MercadoPago.SDK.AccessToken = "YOUR_ACCESS_TOKEN";

3. Using resource objects

You can interact with all the resources available in the public API, to this each resource is represented by classes according to the following diagram:

sdk resource structure

Sample (Creating a Payment)

using MercadoPago;
using MercadoPago.Resources;
using MercadoPago.DataStructures.Payment;
using MercadoPago.Common;

MercadoPago.SDK.ClientSecret = "YOUR_ACCESS_TOKEN";

Payment payment = new Payment
{
    TransactionAmount = (float)100.0,
    Token = "YOUR_CARD_TOKEN"
    Description = "Ergonomic Silk Shirt",
    PaymentMethodId = "visa", 
    Installments = 1,
    Payer = new Payer {
        Email = "larue.nienow@hotmail.com"
    }
};

payment.Save();

Console.Out.WriteLine(payment.Status);

4. Handling Errors

Error response structure

errorstructure

You can check the errors and causes returned by the API using the errors attribute.

Console.Out.WriteLine(payment.Errors.Message) // Print the error Message 

Support

Write us at developers.mercadopago.com

Product Compatible and additional computed target framework versions.
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

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

Package Downloads
SabioGo_BE

BackEnd Sabio GO

FenixAlliance.ABS.Integrations.MercadoLibre

Application Component for the Alliance Business Suite.

FenixAlliance.ABS.Integrations.MP

Application Component for the Alliance Business Suite.

MercadoPago.Extensions.Microsoft.DependencyInjection

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

FenixAlliance.ABS.integrations.MercadoPago

Application Component for the Alliance Business Suite.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.3.8 1,088 3/21/2024
2.3.7 1,089 3/12/2024
2.3.6 1,331 2/22/2024
2.3.5 8,102 11/30/2023
2.3.4 3,570 10/31/2023
2.3.3 9,388 8/15/2023
2.3.2 10,869 5/30/2023
2.3.1 854 5/23/2023
2.2.3 27,149 11/30/2022
2.2.2 17,804 8/16/2022
2.2.1 4,442 7/7/2022
2.2.0 27,843 3/24/2022
2.1.0 23,553 1/5/2022
2.0.0 69,730 3/24/2021
1.11.2 1,076 7/8/2022
1.11.1 1,008 3/30/2022
1.10.2 1,417 3/29/2021
1.10.1 1,859 3/12/2021
1.10.0 1,625 3/4/2021
1.9.1 4,027 2/17/2021
1.9.0 4,386 10/29/2020
1.8.1 4,046 8/12/2020
1.8.0 3,048 7/1/2020
1.7.0 11,202 5/4/2020
1.6.1 15,248 3/3/2020
1.5.0 1,624 1/21/2020
1.4.0 1,248 1/2/2020
1.3.0 1,237 12/16/2019
1.2.2 1,290 11/19/2019
1.2.1 1,265 11/5/2019
1.2.0 3,328 9/18/2019
1.1.0 1,379 9/3/2019
1.0.57 13,326 6/27/2019
1.0.56 12,221 5/14/2019
1.0.54 3,282 1/9/2019
1.0.53 1,297 1/2/2019
1.0.52 1,290 12/18/2018
1.0.51 5,135 12/13/2018
1.0.50 1,340 12/7/2018
1.0.49 1,292 12/3/2018
1.0.48 3,224 11/16/2018
1.0.45 1,268 11/8/2018
1.0.44 1,310 10/31/2018
1.0.42 1,299 10/26/2018
1.0.41 1,390 10/18/2018
1.0.40 1,363 10/17/2018
1.0.34 3,056 8/14/2018
1.0.29 1,793 6/21/2018
1.0.25 1,769 4/25/2018
1.0.24 3,171 3/23/2018

- Se agrega soporte a customización de IVA en Colombia.