Vantiv.CnpSdkForNet 12.33.0

dotnet add package Vantiv.CnpSdkForNet --version 12.33.0
NuGet\Install-Package Vantiv.CnpSdkForNet -Version 12.33.0
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="Vantiv.CnpSdkForNet" Version="12.33.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vantiv.CnpSdkForNet --version 12.33.0
#r "nuget: Vantiv.CnpSdkForNet, 12.33.0"
#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 Vantiv.CnpSdkForNet as a Cake Addin
#addin nuget:?package=Vantiv.CnpSdkForNet&version=12.33.0

// Install Vantiv.CnpSdkForNet as a Cake Tool
#tool nuget:?package=Vantiv.CnpSdkForNet&version=12.33.0

alternate text is missing from this package README image NuGet GitHub issues Main distribution

Vantiv eCommerce .NET SDK

WARNING: All major version changes require recertification to the new version. Once certified for the use of a new version, Vantiv modifies your Merchant Profile, allowing you to submit transaction to the Production Environment using the new version. Updating your code without recertification and modification of your Merchant Profile will result in transaction declines. Please consult you Implementation Analyst for additional information about this process.

About Vantiv eCommerce

Vantiv eCommerce powers the payment processing engines for leading companies that sell directly to consumers through internet retail, direct response marketing (TV, radio and telephone), and online services. Vantiv eCommerce is the leading authority in card-not-present (CNP) commerce, transaction processing and merchant services.

About this SDK

The Vantiv eCommerce .NET SDK is a C# implementation of the CNP XML API. This SDK was created to make it as easy as possible to connect and process your payments with Vantiv eCommerce. This SDK utilizes the HTTPS protocol to securely connect to Vantiv eCommerce. Using the SDK requires coordination with the Vantiv eCommerce team in order to be provided with credentials for accessing our systems.

Each .NET SDK release supports all of the functionality present in the associated CNP XML version (e.g., SDK v12.4.0 supports Vantiv eCommerce XML v12.4). Please see the online copy of our XSD for CNP XML to get more details on what the Vantiv eCommerce payments engine supports.

This SDK is implemented to support the .NET plaform, including C#, VB.NET and Managed C++ and was created by Vantiv eCommerce. Its intended use is for online transactions processing utilizing your account on the Vantiv eComerce payments engine.

See LICENSE file for details on using this software.

Source Code available from : https://github.com/Vantiv/cnp-sdk-for-dotNet

SDK can be tested in sandbox environment. Sandbox does not require valid credentials to begin testing.

Please contact Vantiv eCommerce to receive valid merchant credentials in order to run tests successfully or if you require assistance in any way. We are reachable at sdksupport@fisglobal.com

Setup

  1. To install it, just copy CnpSdkForDotNet.dll into your Visual Studio referernces.

  2. You can configure it statically by modifying CnpSdkForDotNet.dll.config or at runtime using the CnpOnline(Dictionary) constructor. If you are just trying it out, the username, password and merchant id don't matter, and you should choose the sandbox url at https://www.testvantivcnp.com/sandbox/communicator/online.

Configuration

Check out the configuration gist to get more information on the configurable parameters used by the SDK.

Test

  1. Create a c# class similar to:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cnp.Sdk;

    class Example
    {
[STAThread]
        public static void Main(String[] args)
        {
            CnpOnline cnp = new CnpOnline();
            sale sale = new sale();
            sale.orderId = "1";
            sale.id = "1";
            sale.amount = 10010;
            sale.orderSource = orderSourceType.ecommerce;
            contact contact = new contact();
            contact.name = "John Smith";
            contact.addressLine1 = "1 Main St.";
            contact.city = "Burlington";
            contact.state = "MA";
            contact.zip = "01803-3747";
            contact.country = countryTypeEnum.US;
            sale.billToAddress = contact;
            cardType card = new cardType();
            card.type = methodOfPaymentTypeEnum.VI;
            card.number = "4457010000000009";
            card.expDate = "0112";
            card.cardValidationNum = "349";
            sale.card = card;

            saleResponse response = cnp.Sale(sale);
            //Display Results
            Console.WriteLine("Response: " + response.response);
            Console.WriteLine("Message: " + response.message);
            Console.WriteLine("Cnp Transaction Id: " + response.cnpTxnId);
            Console.ReadLine();
        }
    }

  1. Compile and run this file. You should see the following result:

    Response: 000 Message: Approved Cnp Transaction ID: <your-numeric-cnp-txn-id>

Examples

More examples can be found Here or in Functional and Unit Tests

Support

Please contact Vantiv eCommerce with any further questions. You can reach us at sdksupport@fisglobal.com.

Product 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 was computed. 
.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
12.33.0 1,054 1/10/2024
12.31.0 4,590 7/11/2023
12.30.0 3,698 3/21/2023
12.27.0 4,870 10/19/2022
12.24.1 10,578 4/21/2022
12.24.0 538 4/19/2022
12.22.0 750 3/25/2022
12.19.0 449 3/24/2022
12.17.3 720 3/23/2022
12.17.2 505 2/28/2022
12.17.1 14,364 7/28/2021
12.17.0 4,427 10/27/2020
12.15.1 3,511 10/15/2020
12.15.0 528 10/7/2020
12.14.0 2,445 7/29/2020
12.13.0 580 6/23/2020
12.12.0 966 2/24/2020
12.11.0 534 2/18/2020
12.10.3 6,295 12/16/2019
12.10.2 14,978 12/10/2019
12.10.1 1,024 11/8/2019
12.10.0 571 11/4/2019
12.9.1 548 11/8/2019
12.9.0 554 10/28/2019
12.8.4 559 11/8/2019
12.8.3 1,078 9/6/2019
12.8.2 601 8/22/2019
12.8.1 581 8/20/2019
12.8.0 11,747 7/19/2019
12.7.6 10,243 9/3/2020
12.7.5 980 7/17/2019
12.7.4 754 6/28/2019
12.7.3 1,120 3/28/2019
12.7.2 6,010 1/22/2019
12.7.1 1,020 1/14/2019
12.7.0 805 12/31/2018
12.5.1 764 12/14/2018
12.5.0.1 32,097 11/12/2018
12.5.0 795 10/18/2018
12.4.1 5,756 8/17/2018
12.4.0 984 7/25/2018
12.3.1 2,907 6/14/2018
12.3.0 858 5/22/2018
12.1.1 1,013 4/3/2018
12.1.0 1,075 3/30/2018
12.0.0 1,269 12/7/2017