This project is an extension of the MercadoPago SDK, it configures the injection of dependencies for projects that require it.
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.