- Updated "Preapproval" with the lastest API version.
- Added resource "AuthorizedPayment".
- Added IPN support to "AuthorizedPayment" and "Preapproval".
- Now GetAccessToken is thread safe.
- Added "status, date_created, last_modified" to Preapproval.
- Fixed
IpnHandler
incorrectly expecting the payment id to be a validint
-parsable string, when it is actuallylong
.
- Moved CI to Azure Pipelines
Async counterparts have been added for most effectful methods in most resource classes. SaveAsync()
, UpdateAsync()
, DeleteAsync()
, FindByIdAsync()
, etc have been added to most resource classes. These are based on the async HttpClient
API, in contrast to the legacy synchronous methods, which are based on HttpWebRequest
and HttpWebResponse
.
Note: These new methods are available only when using the .NET Standard version of the SDK.
- Most tests are now passing for both platforms.
- Tests related to
System.Configuration
and stringly-typed configuration of credentials have been ommited for .NET Core. A new configuration API will be made available using .NET Core idioms.
- Minimum .NET Framework version required has been changed to 4.0. This is due to .NET Core tooling not supporting .NET 3.5.
- If you are still running .NET Framework 3.5, you may continue to use 1.x versions.
- Merged latest changes from official SDK.
- HTTP status codes in the range
400-500
will no longer result in a silent failure. An exception is now thrown for all non-successful actions performed via the SDK.
- Fixed invalid
Id1
property inMercadoPago.DataStructures.Payment.Order
. Partial fix for #6.
- Merged latest changes from official SDK, including bug fixes related to shipment data.
- Removed previously deprecated MPIPN class.
- Reworked code samples.
- Merged latest changes from official SDK.
PaymentType.Id
is now nullable. Fixes #4
- All static methods that perform requests against the MercadoPago API (for instance all
FindById()
,Search()
andQuery()
methods) now have anaccessToken
parameter, which enables the use of that particular access token for that particular request.
- Implemented
SDK.GetAccessToken(string clientId, string clientSecret)
method, which enables the use ofUserAccessToken
for API calls that traditionally use ClientId and ClientSecret. See Usage example for details. - A critical bug was found in this version, hence it was unlisted from nuget.org.
-
Removed incorrect
[StringLength]
validation attribute from propertyint? MercadoPago.DataStructures.Preference.Item.CategoryId
. Fixes https://github.com/LeximSoluciones/Lexim-MercadoPago-Sdk/issues/3 -
Changed all get-only properties from
MercadoPago.Resources.MerchantOrder
to get/private set. Fixes https://github.com/LeximSoluciones/Lexim-MercadoPago-Sdk/issues/2 -
Reworked validation logic in
MercadoPago.Validation.Validator
for more clear exception messages when validation fails in an unexpected way.
- Removed unneeded Nuget reference: Microsoft.Net.Compilers, which caused an incompatibility with .NET 4.0. Fixes https://github.com/LeximSoluciones/Lexim-MercadoPago-Sdk/issues/1
- Merged lastest changes from official version. Introduces a new
PayerType
value:anonymous
. - Improved error message when TLS 1.2 is not enabled
-
Fixed a serialization bug that would cause an "invalid_items" error when creating a Preference for the first time (fixes https://github.com/mercadopago/dx-dotnet/issues/60)
-
Fixed incorrect endpoints in the
MerchantOrder
resource (fixes https://github.com/mercadopago/dx-dotnet/issues/62)
-
You can now define a request-specific Access Token for each API call. This allows for scenarios where there are multiple merchants sharing a single web application, which therefore cannot rely on static properties in the
SDK
class.See Usage example for details.
- Many methods, classes and properties in the SDK have now been marked
internal
, because they're not supposed to be used in user code. This allows for a much better discoverability and Intellisense experience. Many classes have also been markedsealed
to better indicate that no inheritance is needed.
New feature: LINQ Provider
- Forked from https://github.com/mercadopago/dx-dotnet