Skip to content

CarlosPavajeau/MercadoPago.DependencyInjection

Repository files navigation

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.

About

Extension of MercadoPagoSDK for dependency injection

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages