Vantiv.PayFacMpSdkForNet 13.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Vantiv.PayFacMpSdkForNet --version 13.0.1                
NuGet\Install-Package Vantiv.PayFacMpSdkForNet -Version 13.0.1                
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.PayFacMpSdkForNet" Version="13.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vantiv.PayFacMpSdkForNet --version 13.0.1                
#r "nuget: Vantiv.PayFacMpSdkForNet, 13.0.1"                
#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.PayFacMpSdkForNet as a Cake Addin
#addin nuget:?package=Vantiv.PayFacMpSdkForNet&version=13.0.1

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

Build Status Github All Releases GitHub GitHub issues

payfac-mp-sdk-dotnet

The PayFac Merchant Provisioner SDK is a C# implementation of the Worldpay PayFac Merchant Provisioner API. This SDK was created to make it as easy as possible to perform operations that allows you to create and update Legal Entities and Sub-merchants, as well as retrieve information about existing Legal Entities and Sub-merchants in near real-time. This SDK utilizes the HTTPS protocol to securely connect to Worldpay. 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 PayFac Merchant Provisioner API version (e.g., SDK v13.0.0 supports API v13.0.0). Please see our documentation for PayFac Merchant Provisioner API to get more details on what operations are supported.

This SDK is implemented to support the .NET plaform, including C#, VB.NET and Managed C++ and is created by Worldpay. Its intended use is for PayFac API operations with Worldpay.

Getting Started

These instructions will help you get started with using the SDK.

Prerequisites

None.

Setup

1.) To install it, copy PayFacSdkForNet.dll into your Visual Studio references.

2.) You can configure it statically by adding the following section to your project's App.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <section name="PayFacMpSDK.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
        </sectionGroup>
    </configSections>
    <userSettings>
        <PayFacMpSDK.Properties.Settings>
            <setting name="url" serializeAs="String">
                <value>https://www.testvantivcnp.com/sandbox/payfac</value>
            </setting>
            <setting name="username" serializeAs="String">
                <value>username</value>
            </setting>
            <setting name="password" serializeAs="String">
                <value>password</value>
            </setting>
            <setting name="proxyHost" serializeAs="String">
                <value />
            </setting>
            <setting name="timeout" serializeAs="String">
                <value>5000</value>
            </setting>
            <setting name="printxml" serializeAs="String">
                <value>true</value>
            </setting>
            <setting name="proxyPort" serializeAs="String">
                <value />
            </setting>
            <setting name="neuterXml" serializeAs="String">
                <value>true</value>
            </setting>
        </PayFacMpSDK.Properties.Settings>
    </userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>
</configuration>

Also, you can use a Configuration instance to set the values of the different keys by using Set method.

Example:

Configuration config = new Configuration();
config.Set(username, "myUsername");

The different Keys and values which chould be passed are:

    
    username = myUsername
    password = myPassword
    url = https://www.testvantivcnp.com/sandbox/payfac
    printxml = true
    neuterXml = false
    proxyHost = myProxyHost
    proxyPort = 7777

Configuration

List of configuration parameters along with their values can be found here.

Usage example

Let's try our SDK with the Sandbox, which doesn't require a valid username and password:

using System;

namespace PayFacMpSDK
{
    internal class Program
    {

        public static void Main(string[] args)
        {
            string legalEntityId = "201015";
            var request = new AgreementRetrievalRequest();
            request.Configuration.Set("url", "https://www.testvantivcnp.com/sandbox/payfac");
            request.Configuration.Set("printxml", "true");

            var response = request.GetLegalEntityAgreementRequest(legalEntityId);

            var agreements = response.agreements;

            foreach(var agreement in agreements)
            {
                Console.WriteLine("Aggrement Type :" + agreement.legalEntityAgreementType);
                Console.WriteLine("Aggrement Version :" + agreement.agreementVersion);
            }

        } 
    }
}

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

    Case Id:1288791001

Versioning

For the versions available, see the tags on this repository.

Changelog

For the list of changes, check out the changelog

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Examples

More examples can be found in Functional and Unit Tests

Support

Please contact Vantiv eCommerce to receive valid merchant credentials in order to run tests successfully or if you require assistance in any way. Support can also be reached at sdksupport@Vantiv.com

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
14.0.1 32 11/21/2024
14.0.0 115 9/18/2024
13.1.0 24,836 8/3/2020
13.0.4 521 6/16/2020
13.0.3 6,719 12/10/2019
13.0.1 2,916 9/19/2018
13.0.0 783 9/11/2018

* Bug Fix Fixing loading of Configuration