MercadoPagoCore.Extensions.Microsoft.DependencyInjection
1.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.Extensions.Microsoft.DependencyInjection --version 1.0.0
NuGet\Install-Package MercadoPagoCore.Extensions.Microsoft.DependencyInjection -Version 1.0.0
<PackageReference Include="MercadoPagoCore.Extensions.Microsoft.DependencyInjection" Version="1.0.0" />
paket add MercadoPagoCore.Extensions.Microsoft.DependencyInjection --version 1.0.0
#r "nuget: MercadoPagoCore.Extensions.Microsoft.DependencyInjection, 1.0.0"
// Install MercadoPagoCore.Extensions.Microsoft.DependencyInjection as a Cake Addin #addin nuget:?package=MercadoPagoCore.Extensions.Microsoft.DependencyInjection&version=1.0.0 // Install MercadoPagoCore.Extensions.Microsoft.DependencyInjection as a Cake Tool #tool nuget:?package=MercadoPagoCore.Extensions.Microsoft.DependencyInjection&version=1.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
.NET >= 5.0
π² 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.Extensions.Microsoft.DependencyInjection -Version 1.0.0
Using .Net CLI
> dotnet add package MercadoPagoCore.Extensions.Microsoft.DependencyInjection --version 1.0.0
Using Paket CLI
> paket add MercadoPagoCore.Extensions.Microsoft.DependencyInjection --version 1.0.0
Using Package Reference
<PackageReference Include="MercadoPagoCore.Extensions.Microsoft.DependencyInjection" Version="1.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
- MercadoPagoCore (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.0 | 1,230 | 1/16/2021 |