Vantiv.CnpSdkForNet 12.3.1

.NET implementation of Vantiv eCommerce XML spec

There is a newer version of this package available.
See the version list below for details.
Install-Package Vantiv.CnpSdkForNet -Version 12.3.1
dotnet add package Vantiv.CnpSdkForNet --version 12.3.1
<PackageReference Include="Vantiv.CnpSdkForNet" Version="12.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vantiv.CnpSdkForNet --version 12.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 Vantiv eCommerce 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 Vantiv eCommerce XML version (e.g., SDK v9.3.2 supports Vantiv eCommerce XML v9.3). Please see the online copy of our XSD for Vantiv eCommerce 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

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@Vantiv.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.

3.) 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>

More examples can be found Here or in [Functional and Unit Tests] (https://github.com/Vantiv/cnp-sdk-for-dotNet/tree/master/CnpSdkForNet/CnpSdkForNetTest)

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

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 Vantiv eCommerce 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 Vantiv eCommerce XML version (e.g., SDK v9.3.2 supports Vantiv eCommerce XML v9.3). Please see the online copy of our XSD for Vantiv eCommerce 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

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@Vantiv.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.

3.) 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>

More examples can be found Here or in [Functional and Unit Tests] (https://github.com/Vantiv/cnp-sdk-for-dotNet/tree/master/CnpSdkForNet/CnpSdkForNetTest)

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

Release Notes

* BugFix: Added translateToLowValueTokenRequest and Response for CnpOnline

Version History

Version Downloads Last updated
12.7.3 126 3/28/2019
12.7.2 230 1/22/2019
12.7.1 165 1/14/2019
12.7.0 126 12/31/2018
12.5.1 134 12/14/2018
12.5.0.1 3,014 11/12/2018
12.5.0 128 10/18/2018
12.4.1 2,473 8/17/2018
12.4.0 148 7/25/2018
12.3.1 1,722 6/14/2018
12.3.0 155 5/22/2018
12.1.1 228 4/3/2018
12.1.0 326 3/30/2018
12.0.0 254 12/7/2017
Show less