MaxiPago 3.0.706

There is a newer version of this package available.
See the version list below for details.
dotnet add package MaxiPago --version 3.0.706
                    
NuGet\Install-Package MaxiPago -Version 3.0.706
                    
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.706" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MaxiPago" Version="3.0.706" />
                    
Directory.Packages.props
<PackageReference Include="MaxiPago" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MaxiPago --version 3.0.706
                    
#r "nuget: MaxiPago, 3.0.706"
                    
#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.
#:package MaxiPago@3.0.706
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MaxiPago&version=3.0.706
                    
Install as a Cake Addin
#tool nuget:?package=MaxiPago&version=3.0.706
                    
Install as a Cake Tool

MaxiPago SDK client

The MaxiPago gateway SDK for .NET projects

GitHub license Time tracker

MaxiPago


CI/CD

Build status Last commit Tests Coverage Code Smells LoC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality

Codacy Badge Codacy Badge

codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
MaxiPago MaxiPago NuGet Version MaxiPago NuGet Downloads

Features

Implements all features of MaxiPago API available at Integration Documentation

  • Add customer
  • Delete customer
  • Update customer
  • Add a 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 have this information, use null instead
    addressLineTwo, //if you don't have this information, use null instead
    city, //if you don't have this information, use null instead
    state, //if you don't have this information, use null instead
    zipCode, //if you don't have this information, use null instead
    phone, //if you don't have this information, use null instead
    email,
    dateOfBirth, //if you don't have 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 updating or deleting 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 a 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 the frequency is 1, every "period" will be charged. So if the period is "weekly" and the 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 an email notification to the 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 error, handle it

var orderId = result.OrderId;
var responseCode = result.ResponseCode;
if(responseCode != 0) {
    Console.WriteLine(result.ErrorMessage); //handle it

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.

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.719 161 8/7/2025
3.0.716 443 7/24/2025
3.0.713 438 7/24/2025
3.0.706 134 7/14/2025
3.0.702 130 7/14/2025
3.0.698 155 6/20/2025
3.0.694 220 6/9/2025
3.0.687 164 5/26/2025
3.0.680 159 5/19/2025
3.0.674 167 5/5/2025
3.0.669 177 4/29/2025
3.0.654 408 3/24/2025
3.0.651 167 2/24/2025
3.0.648 133 2/17/2025
3.0.645 137 2/10/2025
3.0.639 141 1/21/2025
3.0.636 98 1/13/2025
3.0.633 79 1/13/2025
3.0.630 73 1/13/2025
3.0.625 76 1/13/2025
3.0.616 125 1/6/2025
3.0.613 104 1/6/2025
3.0.604 130 12/23/2024
3.0.601 108 12/23/2024
3.0.598 134 12/9/2024
3.0.595 132 11/25/2024
3.0.590 128 11/18/2024
3.0.587 136 10/28/2024
3.0.583 137 10/14/2024
3.0.580 133 10/3/2024
3.0.577 127 10/3/2024
3.0.572 142 9/23/2024
3.0.569 175 9/16/2024
3.0.566 142 9/9/2024
3.0.563 133 9/9/2024
3.0.558 150 9/2/2024
3.0.555 142 8/28/2024
3.0.547 135 8/28/2024
3.0.544 126 8/27/2024
3.0.537 138 8/26/2024
3.0.528 174 8/24/2024
3.0.522 141 8/19/2024
3.0.519 146 8/12/2024
3.0.516 111 8/5/2024
3.0.504 142 7/15/2024
3.0.501 136 7/15/2024
3.0.496 132 7/8/2024
3.0.493 150 7/3/2024
3.0.489 161 6/16/2024
3.0.484 128 6/16/2024
3.0.481 141 6/16/2024
3.0.476 153 5/27/2024
3.0.473 139 5/27/2024
3.0.468 137 5/27/2024
3.0.461 148 5/19/2024
3.0.457 138 5/14/2024
3.0.454 153 4/30/2024
3.0.451 170 4/30/2024
3.0.444 143 4/29/2024
3.0.435 123 4/22/2024
3.0.432 130 4/22/2024
3.0.427 144 4/22/2024
3.0.422 150 4/15/2024
3.0.419 152 4/15/2024
3.0.414 152 4/8/2024
3.0.411 220 3/18/2024
3.0.408 239 2/26/2024
3.0.405 261 2/20/2024
3.0.401 274 2/19/2024
3.0.389 276 2/14/2024
3.0.386 257 2/14/2024
3.0.380 287 2/12/2024
3.0.377 252 2/12/2024
3.0.372 363 1/30/2024
3.0.369 299 1/29/2024
3.0.364 316 1/29/2024
3.0.356 328 1/22/2024
3.0.353 329 1/22/2024
3.0.350 338 1/22/2024
3.0.343 344 1/16/2024
3.0.340 348 1/16/2024
3.0.335 369 1/15/2024
3.0.328 379 1/8/2024
3.0.325 365 12/25/2023
3.0.322 340 12/25/2023
3.0.317 390 12/18/2023
3.0.297 408 12/14/2023
3.0.291 417 12/11/2023
3.0.288 405 12/11/2023
3.0.283 405 12/11/2023
3.0.280 431 12/11/2023
3.0.271 459 12/4/2023
3.0.268 457 12/4/2023
3.0.263 386 11/27/2023
3.0.260 367 11/20/2023
3.0.255 404 11/20/2023
3.0.250 399 11/20/2023
3.0.243 417 11/14/2023
3.0.238 426 11/14/2023
3.0.235 364 11/13/2023
3.0.230 343 11/9/2023
3.0.224 353 11/6/2023
3.0.221 410 11/6/2023
3.0.216 421 10/30/2023
3.0.213 424 10/30/2023
3.0.206 480 10/23/2023
3.0.203 436 10/16/2023
3.0.200 448 10/16/2023
3.0.195 435 10/16/2023
3.0.188 450 10/8/2023
3.0.179 478 9/23/2023
3.0.176 503 9/19/2023
3.0.173 524 9/19/2023
3.0.168 495 9/19/2023
3.0.152 487 9/12/2023
3.0.149 530 9/12/2023
3.0.144 524 9/4/2023
3.0.141 593 8/24/2023
3.0.138 545 8/14/2023
3.0.135 573 8/14/2023
3.0.132 522 8/14/2023
3.0.123 565 8/14/2023
3.0.118 542 8/8/2023
3.0.115 575 7/23/2023
3.0.112 542 7/23/2023
3.0.102 589 7/23/2023
3.0.98 566 7/23/2023
3.0.96 572 7/23/2023
3.0.76 555 7/19/2023
3.0.70 694 7/14/2023
3.0.65 582 7/14/2023
3.0.62 553 7/13/2023
3.0.59 603 7/11/2023
3.0.56 495 7/11/2023
3.0.51 585 7/3/2023
3.0.48 557 6/19/2023
3.0.47 602 6/15/2023
3.0.44 544 6/5/2023
3.0.43 568 6/5/2023
3.0.40 533 6/5/2023
3.0.35 559 5/22/2023
3.0.32 546 5/22/2023
3.0.25 568 5/4/2023
3.0.22 592 5/3/2023
3.0.17 667 4/8/2023
3.0.11 592 4/4/2023
3.0.6 792 3/26/2023
3.0.2 610 3/26/2023
2.0.95 662 3/26/2023
2.0.80 541 3/26/2023
2.0.73 640 3/26/2023
2.0.70 633 3/22/2023
2.0.65 727 3/5/2023
2.0.61 646 3/3/2023
2.0.58 657 3/3/2023
2.0.50 640 3/3/2023
2.0.0 685 2/27/2023
1.0.49 1,352 4/18/2020
1.0.41 993 4/18/2020
1.0.24 990 4/18/2020

Add support to .NET 6, 7, and 8