piconnect.dll 3.4.0

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

// Install piconnect.dll as a Cake Tool
#tool nuget:?package=piconnect.dll&version=3.4.0                

How to use PIConnect DLL:

Important:

Please visit PI Technologies website and request a free developer account number. You may use 1502122693 to start your work:

http://paymentinnovators.com/test-account-request/

PIConnect DLL page below is also a great source of additional information

http://paymentinnovators.com/merchants-2/pi-connect-dll/

1- Start by adding a reference to piconnect.dll in your project.

2- Create an instance of PiPay() class in your code:

    PiPay myClass = new PiPay();

3- Create an instance of PaymentResponse() class:

    PaymentResponse myResp = newPaymentResponse();

4- and finally an instance of DeviceSettings();

    DeviceSettings myDevice = newDeviceSettings();

5- Initialize your instance of DeviceSettings class:

    myDevice.DeviceIp = ip; // IP Address of your PAX device

    myDevice.PortNo = paxPort; // Port number of your PAX device, usually 10009

    myDevice.Timeout = paxTimeout; // A timeout in microseconds. e.g: 30000 (30 seconds)

    myDevice.DeviceSn = sn; // Serial number of your device. You will this on the device.

    myDevice.AccNumber = paxAccount; //your PI Technology account number. Test account number: 1502122693

6- Now, you are ready to make transaction calls. For example, look at the following CreditSale call:

    myClass.DeviceSetting = myDevice;

    myResp = myClass.CreditSale(amount, ticket, signature, notes,token, expdate,cardtype );

    jsonData = JsonConvert.SerializeObject(myResp);

PIConnect DLL supports the following transaction types:

  • CreditSale(double amount, string ticket, Int16 signature = 0, string notes = null, string token=null, string expdate=null, string card=null)
  • CreditVoid(string RefId, string TransNumber, string notes = null)
  • CreditReturn(string RefId, string TransNumber, double amount, string notes = null, string token = null, string expdate = null, string card = null)
  • CreditAdjust(string RefId, string TransNumber, double amount, string notes = null)
  • CreditAuth(double amount, string ticket, string notes = null)
  • CreditCapture(string authCode, string RefId, string TransNumber, double forcedAmount)
  • DebitSale(double amount, string ticket, string notes = null)
  • DebitVoid(string RefId, string TransNumber, string notes = null)
  • DebitReturn(string RefId, string TransNumber, double amount, string notes = null)
  • CloseBatch()
  • ClearBatch()
  • InitializePinPad()
  • LastBatch()
  • PurgeBatch()
  • ForceBatchClose()
  • TotalReport(string edcType = "00")
  • FailedReport()
  • DetailsReport(string tranactionNo, string authCode)
  • GetCardInfo()
  • EbtSale(double amount, string ticket, string notes = null)
  • EbtReturn(string RefId, string TransNumber, double amount, string notes = null)

More examples:

CloseBatch:

PiPay myClass = newPiPay();

BatchResponse myResp = newBatchResponse();

DeviceSettings myDevice = newDeviceSettings();

myClass.DeviceSetting = myDevice;

myResp = myClass.CloseBatch();

jsonData = JsonConvert.SerializeObject(myResp);

There are no supported framework assets in this 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
3.4.0 1,407 2/8/2018
3.2.0 1,325 12/17/2017

This release includes more transaction type, improved features and bug fixes.