MaxiPago 3.0.144
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MaxiPago --version 3.0.144
NuGet\Install-Package MaxiPago -Version 3.0.144
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MaxiPago" Version="3.0.144" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MaxiPago --version 3.0.144
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MaxiPago, 3.0.144"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MaxiPago as a Cake Addin #addin nuget:?package=MaxiPago&version=3.0.144 // Install MaxiPago as a Cake Tool #tool nuget:?package=MaxiPago&version=3.0.144
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MaxiPago SDK client
The MaxiPago gateway SDK for .NET projects
CI/CD
Build status | Last commit | Tests | Coverage | Code Smells | LoC |
---|---|---|---|---|---|
Code Quality (main branch)
Installation
Github Releases
Download the latest zip file from the Release page.
Nuget package manager
Package | Version | Downloads |
---|---|---|
MaxiPago |
Features
Implements all features of MaxiPago API available at Integration Documentation
- Add customer
- Delete customer
- Update customer
- Add card on file
- Delete card on file
- Cancel recurring
- Sale (with card data)
- Sale (with saved card)
- Sale (with card data, saving the card for future use)
- Auth (with card data)
- Auth (with saved card)
- Auth (with card data, saving the card for future use)
- Boleto (bank slip / bank bill - Brazil only!)
- Capture (capture a pre auth request)
- Return
- Void
- Recurring (with card data)
- Recurring (with saved card)
- Online Debit (Brazil only!)
- Transactions report
- Transaction detailed report
- Transaction detailed report by order id
- Check request status
Usage
Adding a customer
//For each environment (TEST and LIVE) this information is different!
var merchantId = "your-merchant-id"; //get this information with MaxiPago
var merchantKey = "your-merchant-key"; //get this information with MaxiPago
var api = new Api { Environment = "TEST" }; //TEST or LIVE
var response = api.AddConsumer(
MerchantId,
MerchantKey,
userIdInYourSystem,
firstName,
lastName,
addressLineOne, //if you don't has this information, use null instead
addressLineTwo, //if you don't has this information, use null instead
city, //if you don't has this information, use null instead
state, //if you don't has this information, use null instead
zipCode, //if you don't has this information, use null instead
phone, //if you don't has this information, use null instead
email,
dateOfBirth, //if you don't has this information, use null instead
document,
gender); //M for Male and F for Female
if(!string.IsNullOrWhiteSpace(response.ErrorMessage))
//handle the error message.
return response.Result.CustomerId; //store this customer id value for update or delete the customer in future.
Delete customer
//For each environment (TEST and LIVE) this information is different!
var merchantId = "your-merchant-id"; //get this information with MaxiPago
var merchantKey = "your-merchant-key"; //get this information with MaxiPago
var api = new Api { Environment = "TEST" }; //TEST or LIVE
var response = api.DeleteCustomer(merchantId, merchantKey, customerId); //this information was returned by the AddCustomer method.
if(!string.IsNullOrWhiteSpace(response.ErrorMessage))
//handle the error message.
Update customer
//For each environment (TEST and LIVE) this information is different!
var merchantId = "your-merchant-id"; //get this information with MaxiPago
var merchantKey = "your-merchant-key"; //get this information with MaxiPago
var api = new Api { Environment = "TEST" }; //TEST or LIVE
var response = api.UpdatedCustomer(
merchantId,
merchantKey,
customerId,
userIdOnYourSystem,
firstName,
lastName,
null,
null,
null,
null,
null,
"+5511123456789", //updates the telephone
email,
null,
null,
"M");
if(!string.IsNullOrWhiteSpace(response.ErrorMessage))
//handle the error message.
Save card
//For each environment (TEST and LIVE) this information is different!
var merchantId = "your-merchant-id"; //get this information with MaxiPago
var merchantKey = "your-merchant-key"; //get this information with MaxiPago
var api = new Api { Environment = "TEST" }; //TEST or LIVE
var response = api.AddCardOnFile(
merchantId,
merchantKey,
customerId,
creditCardNumber,
expirationMonth,
expirationYear,
billingName,
billingAddressLineOne,
billingAddressLineTwo,
billingCity,
billingState,
billingZip,
billingCountry,
billingPhone,
billingEmail,
onFileEndDate, //Deadline to keep the card in the base
onFilePermission, //Limit duration for the use of the saved card. "ongoing" = indefinitely / "use_once" = only once after the 1st payment
onFileComment,
onFileMaxChargeAmount); //Maximum amount that this card is authorized to be charged.
if(!string.IsNullOrWhiteSpace(response.ErrorMessage))
//handle the error message.
return response.Result.Token; //store this token for future use (remove card, sale, auth...)
Create recurring payment
//For each environment (TEST and LIVE) this information is different!
var merchantId = "your-merchant-id"; //get this information with MaxiPago
var merchantKey = "your-merchant-key"; //get this information with MaxiPago
var transaction = new Transaction { Environment = "TEST" }; //TEST or LIVE
var response = transaction.Recurring(
merchantId,
merchantKey,
transactionId,
value,
creditCardNumber,
expirationMonth,
expirationYear,
null,
creditCardSecureCode,
processorId, //TEST SIMULATOR = 1 | Rede = 2 | GetNet = 3 | Cielo = 4 | TEF = 5 | Elavon = 6 | ChasePaymentech = 8
6, //installments
"N", //charge interest
ipAddress,
"new",
startDate, //the date of first charge
frequency, //combined with period, so if frequency is 1, every "period" will be charged. So if period is "weekly" and frequency is "2", every two weeks will be charged.
period, //The charge recurring period: daily, weekly, monthly
numberOfTimes, //The number of times to repeat the charge (use 999 as max value for "indefinitely" time, after 999 times, this recurring will need to be created again).
failureThreshold, //Number of failed attempts needed to trigger email notification to merchant.
"BRL"); //currency of the charge.
if(response.IsErrorResponse){
if(response is ErrorResponse errorResult)
Console.WriteLine(errorResult.ErrorMsg); //handle the error message.
}
if(!(response is TransactionResponse result))
//some other erro, handle it
var orderId = result.OrderId;
var responseCode = result.ResponseCode;
if(responseCode != 0) {
Console.WriteLine(result.ErrorMessage); //handle it
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.AspNet.WebApi.Client (>= 5.2.9)
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.1
- Microsoft.AspNet.WebApi.Client (>= 5.2.9)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.590 | 65 | 11/18/2024 |
3.0.587 | 91 | 10/28/2024 |
3.0.583 | 99 | 10/14/2024 |
3.0.580 | 96 | 10/3/2024 |
3.0.577 | 88 | 10/3/2024 |
3.0.572 | 99 | 9/23/2024 |
3.0.569 | 126 | 9/16/2024 |
3.0.566 | 102 | 9/9/2024 |
3.0.563 | 98 | 9/9/2024 |
3.0.558 | 106 | 9/2/2024 |
3.0.555 | 109 | 8/28/2024 |
3.0.547 | 98 | 8/28/2024 |
3.0.544 | 95 | 8/27/2024 |
3.0.537 | 104 | 8/26/2024 |
3.0.528 | 130 | 8/24/2024 |
3.0.522 | 105 | 8/19/2024 |
3.0.519 | 110 | 8/12/2024 |
3.0.516 | 70 | 8/5/2024 |
3.0.504 | 108 | 7/15/2024 |
3.0.501 | 90 | 7/15/2024 |
3.0.496 | 98 | 7/8/2024 |
3.0.493 | 108 | 7/3/2024 |
3.0.489 | 128 | 6/16/2024 |
3.0.484 | 95 | 6/16/2024 |
3.0.481 | 96 | 6/16/2024 |
3.0.476 | 120 | 5/27/2024 |
3.0.473 | 109 | 5/27/2024 |
3.0.468 | 101 | 5/27/2024 |
3.0.461 | 112 | 5/19/2024 |
3.0.457 | 96 | 5/14/2024 |
3.0.454 | 122 | 4/30/2024 |
3.0.451 | 115 | 4/30/2024 |
3.0.444 | 109 | 4/29/2024 |
3.0.435 | 92 | 4/22/2024 |
3.0.432 | 102 | 4/22/2024 |
3.0.427 | 107 | 4/22/2024 |
3.0.422 | 117 | 4/15/2024 |
3.0.419 | 123 | 4/15/2024 |
3.0.414 | 121 | 4/8/2024 |
3.0.411 | 182 | 3/18/2024 |
3.0.408 | 203 | 2/26/2024 |
3.0.405 | 219 | 2/20/2024 |
3.0.401 | 233 | 2/19/2024 |
3.0.389 | 240 | 2/14/2024 |
3.0.386 | 218 | 2/14/2024 |
3.0.380 | 232 | 2/12/2024 |
3.0.377 | 218 | 2/12/2024 |
3.0.372 | 313 | 1/30/2024 |
3.0.369 | 269 | 1/29/2024 |
3.0.364 | 280 | 1/29/2024 |
3.0.356 | 300 | 1/22/2024 |
3.0.353 | 298 | 1/22/2024 |
3.0.350 | 310 | 1/22/2024 |
3.0.343 | 303 | 1/16/2024 |
3.0.340 | 311 | 1/16/2024 |
3.0.335 | 332 | 1/15/2024 |
3.0.328 | 351 | 1/8/2024 |
3.0.325 | 336 | 12/25/2023 |
3.0.322 | 309 | 12/25/2023 |
3.0.317 | 363 | 12/18/2023 |
3.0.297 | 382 | 12/14/2023 |
3.0.291 | 377 | 12/11/2023 |
3.0.288 | 373 | 12/11/2023 |
3.0.283 | 368 | 12/11/2023 |
3.0.280 | 401 | 12/11/2023 |
3.0.271 | 441 | 12/4/2023 |
3.0.268 | 435 | 12/4/2023 |
3.0.263 | 367 | 11/27/2023 |
3.0.260 | 341 | 11/20/2023 |
3.0.255 | 377 | 11/20/2023 |
3.0.250 | 376 | 11/20/2023 |
3.0.243 | 394 | 11/14/2023 |
3.0.238 | 402 | 11/14/2023 |
3.0.235 | 336 | 11/13/2023 |
3.0.230 | 312 | 11/9/2023 |
3.0.224 | 323 | 11/6/2023 |
3.0.221 | 375 | 11/6/2023 |
3.0.216 | 397 | 10/30/2023 |
3.0.213 | 404 | 10/30/2023 |
3.0.206 | 452 | 10/23/2023 |
3.0.203 | 402 | 10/16/2023 |
3.0.200 | 411 | 10/16/2023 |
3.0.195 | 404 | 10/16/2023 |
3.0.188 | 413 | 10/8/2023 |
3.0.179 | 445 | 9/23/2023 |
3.0.176 | 474 | 9/19/2023 |
3.0.173 | 500 | 9/19/2023 |
3.0.168 | 457 | 9/19/2023 |
3.0.152 | 462 | 9/12/2023 |
3.0.149 | 498 | 9/12/2023 |
3.0.144 | 490 | 9/4/2023 |
3.0.141 | 533 | 8/24/2023 |
3.0.138 | 499 | 8/14/2023 |
3.0.135 | 538 | 8/14/2023 |
3.0.132 | 485 | 8/14/2023 |
3.0.123 | 526 | 8/14/2023 |
3.0.118 | 494 | 8/8/2023 |
3.0.115 | 538 | 7/23/2023 |
3.0.112 | 493 | 7/23/2023 |
3.0.102 | 547 | 7/23/2023 |
3.0.98 | 525 | 7/23/2023 |
3.0.96 | 533 | 7/23/2023 |
3.0.76 | 508 | 7/19/2023 |
3.0.70 | 621 | 7/14/2023 |
3.0.65 | 539 | 7/14/2023 |
3.0.62 | 505 | 7/13/2023 |
3.0.59 | 560 | 7/11/2023 |
3.0.56 | 455 | 7/11/2023 |
3.0.51 | 546 | 7/3/2023 |
3.0.48 | 512 | 6/19/2023 |
3.0.47 | 560 | 6/15/2023 |
3.0.44 | 501 | 6/5/2023 |
3.0.43 | 519 | 6/5/2023 |
3.0.40 | 480 | 6/5/2023 |
3.0.35 | 508 | 5/22/2023 |
3.0.32 | 503 | 5/22/2023 |
3.0.25 | 513 | 5/4/2023 |
3.0.22 | 549 | 5/3/2023 |
3.0.17 | 614 | 4/8/2023 |
3.0.11 | 541 | 4/4/2023 |
3.0.6 | 732 | 3/26/2023 |
3.0.2 | 555 | 3/26/2023 |
2.0.95 | 612 | 3/26/2023 |
2.0.80 | 496 | 3/26/2023 |
2.0.73 | 584 | 3/26/2023 |
2.0.70 | 588 | 3/22/2023 |
2.0.65 | 677 | 3/5/2023 |
2.0.61 | 597 | 3/3/2023 |
2.0.58 | 608 | 3/3/2023 |
2.0.50 | 595 | 3/3/2023 |
2.0.0 | 626 | 2/27/2023 |
1.0.49 | 1,256 | 4/18/2020 |
1.0.41 | 898 | 4/18/2020 |
1.0.24 | 901 | 4/18/2020 |
Add support to .NET Standard 2.0