Skip to content

caiocsl/dx-dotnet

 
 

Repository files navigation

Mercado Pago SDK for .Net

CI NuGet Download count APM

This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.

💡 Requirements

4.5 .Net Framework or higher

📲 Installation

Using our nuget package

First time using Mercado Pago? Create your Mercado Pago account, if you don’t have one already.

Using Package Manager

PM> Install-Package mercadopago-sdk -Version 1.8.1

Using .Net CLI

> dotnet add package mercadopago-sdk --version 1.8.1

Using Packet CLI

> paket add mercadopago-sdk --version 1.8.1

Copy the access_token in the credentials section of the page and replace YOUR_ACCESS_TOKEN with it.

That's it! Mercado Pago SDK has been successfully installed.

🌟 Getting Started

Simple usage looks like:

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

MercadoPago.SDK.AccessToken = "YOUR_ACCESS_TOKEN";

Payment payment = new Payment
{
    TransactionAmount = 100,
    Token = "YOUR_CARD_TOKEN"
    Description = "Ergonomic Silk Shirt",
    PaymentMethodId = "visa", 
    Installments = 1,
    Payer = new Payer {
        Email = "test.payer@email.com"
    }
};

payment.Save();

Console.Out.WriteLine(payment.Status);

📚 Documentation

Visit our Dev Site for further information regarding:

Check our official code reference to explore all available functionalities.

❤️ Support

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

🏻 License

MIT license. Copyright (c) 2018 - Mercado Pago / Mercado Libre 
For more information, see the LICENSE file.

About

Mercado Pago's Official .Net SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%