Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 983 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 983 Bytes

MercadoPago.DependencyInjection

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


Build status

.NET Core

Usage (Example for ASP.NET core)

Configure in StartUp class.

using MercadoPago.DependencyInjection;
// ...
// ...

public void ConfigureServices(IServiceCollection services)
{
  // ....
  services.AddMercadoPago(Configuration);
  // ....
}

Add the following section to your appsettings.json

"MercadoPago" : {
    "AccessToken": "ACCESS_TOKEN",
    "CorporationId": "CORPORATION_ID",
    "IntegratorId": "INTEGRATOR_ID",
    "PlatformId": "PLATFORM_ID"
  }

Once configured, the MercadoPago clients can be used in the same way as other injected services.

Visit the MercadoPago repository for more information Click here.