- Addition of MPRequestOptions to allow configure each request (configure access token, add headers, configure timeouts)
var customHeaders = new Dictionary<String, String>();
customHeaders.Add("x-test", "test");
var requestOptions = new MPRequestOptions
{
AccessToken = "YOUR_ACCESS_TOKEN",
Retries = 2,
Timeout = 10000,
CustomHeaders = customHeaders
};
var payment = new Payment();
...
payment.Save(requestOptions);
- Addition of DiscountCampaign class to allow find a valid discount
- Added the functionality of saving customer card using the card token
var card = new Card
{
CustomerId = "CUSTOMER_ID",
Token = "CARD_TOKEN"
};
card.Save();
- Change the type of StreetNumber property from string to int in Customer.Address
- Adjust Refund method in Payment