MercadoPagoCore 5.0.0
This repository is archived since the official Mercadopago sdk has been updated and continues to be updated.
Only dependency reversal functionality for ASP.NET core will be preserved in the following repository "https://github.com/cantte/MercadoPago.DependencyInjection"
dotnet add package MercadoPagoCore --version 5.0.0
NuGet\Install-Package MercadoPagoCore -Version 5.0.0
<PackageReference Include="MercadoPagoCore" Version="5.0.0" />
paket add MercadoPagoCore --version 5.0.0
#r "nuget: MercadoPagoCore, 5.0.0"
// Install MercadoPagoCore as a Cake Addin #addin nuget:?package=MercadoPagoCore&version=5.0.0 // Install MercadoPagoCore as a Cake Tool #tool nuget:?package=MercadoPagoCore&version=5.0.0
MercadoPagoCore - Repository
This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.
Build Status
MercadoPagoCore
π Package information
π‘ Requirements
.NETCoreApp >= 3.1
π² 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 MercadoPagoCore -Version 5.0.0
Using .Net CLI
> dotnet add package MercadoPagoCore --version 5.0.0
Using Paket CLI
> paket add MercadoPagoCore --version 5.0.0
Using Package Reference
<PackageReference Include="MercadoPagoCore" Version="5.0.0" />
Copy the access_token in the credentials section of the page and replace YOUR_ACCESS_TOKEN with it.
That's it! MercadoPagoCore SDK has been successfully installed.
π Getting Started
Simple usage looks like:
using System;
using System.Threading.Tasks;
using MercadoPago.Client.Payment;
using MercadoPago.Config;
using MercadoPago.Resource.Payment;
MercadoPagoConfig.AccessToken = "YOUR_ACCESS_TOKEN";
var request = new PaymentCreateRequest
{
TransactionAmount = 10,
Token = "CARD_TOKEN",
Description = "Payment description",
Installments = 1,
PaymentMethodId = "visa",
Payer = new PaymentPayerRequest
{
Email = "test.payer@email.com",
}
};
var client = new PaymentClient();
Payment payment = await client.CreateAsync(request);
Console.WriteLine($"Payment ID: {payment.Id}");
π Documentation
Visit our Dev Site for further information regarding:
- Payments APIs: Spanish / Portuguese
- Mercado Pago checkout: Spanish / Portuguese
- Web Tokenize checkout: Spanish / Portuguese
β€οΈ Support
If you require technical support, please contact our support team at developers.mercadopago.com
π» License
MIT license. Copyright (c) 2020
For more information, see the LICENSE file.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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 was computed. 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. |
-
net5.0
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Newtonsoft.Json (>= 12.0.3)
- ObjectDumper.NET (>= 3.0.20251.1)
- System.Configuration.ConfigurationManager (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MercadoPagoCore:
Package | Downloads |
---|---|
MercadoPagoCore.Extensions.Microsoft.DependencyInjection
The inofficial MercadoPagoCore SDK for ASP.NET core apps |
GitHub repositories
This package is not used by any popular GitHub repositories.