Class MercadoPagoConfig
Class with SDK global configurations.
Inherited Members
Namespace: MercadoPago.Config
Assembly: MercadoPago.dll
Syntax
public static class MercadoPagoConfig
Properties
| Edit this page View SourceAccessToken
Your access token is a credential configured to your account. It's required to integrate with MercadoPago's APIs. You can see and/or configure your credentials here.
Declaration
public static string AccessToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
You can configure the access token using the MercadoPagoAccessToken key in
AppSettings.
BaseUrl
Base URL of MercadoPago's APIs.
Declaration
public static string BaseUrl { get; }
Property Value
| Type | Description |
|---|---|
| string |
CorporationId
Corporation identification that will be send in header X-Corporation-Id
Declaration
public static string CorporationId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
You can configure the corporation ID using the MercadoPagoCorporationId key in
AppSettings.
HttpClient
The IHttpClient used in HTTP requests. If not informed, the DefaultHttpClient will be used with the default HttpClient. You can use your HttpClient with the DefaultHttpClient.
var httpClient = new System.Net.Http.HttpClient();
var defaultHttpClient = new DefaultHttpClient(httpClient);
Declaration
public static IHttpClient HttpClient { get; set; }
Property Value
| Type | Description |
|---|---|
| IHttpClient |
IntegratorId
Integrator identification that will be send in header X-Integrator-Id
Declaration
public static string IntegratorId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
You can configure the integrator ID using the MercadoPagoIntegratorId key in
AppSettings.
PlatformId
Platform identification that will be send in header X-Platform-Id
Declaration
public static string PlatformId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
You can configure the platform ID using the MercadoPagoIntegratorId key in
AppSettings.
ProductId
Internal usage product id.
Declaration
public static string ProductId { get; }
Property Value
| Type | Description |
|---|---|
| string |
RetryStrategy
The IRetryStrategy used in IHttpClient. If not informed, the DefaultRetryStrategy will be used with max number retries equals MercadoPago.Config.MercadoPagoConfig.DEFAULT_MAX_HTTP_RETRIES.
Declaration
public static IRetryStrategy RetryStrategy { get; set; }
Property Value
| Type | Description |
|---|---|
| IRetryStrategy |
Serializer
The ISerializer used to serialize request objects to JSON and deserialize API response to IResource. If not informed, the DefaultSerializer will be used.
Declaration
public static ISerializer Serializer { get; set; }
Property Value
| Type | Description |
|---|---|
| ISerializer |
TrackingId
SDK Tracking Id.
Declaration
public static string TrackingId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Version
Actual SDK version.
Declaration
public static string Version { get; }
Property Value
| Type | Description |
|---|---|
| string |