PiLink 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package PiLink --version 1.0.1
                    
NuGet\Install-Package PiLink -Version 1.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="PiLink" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PiLink" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="PiLink" />
                    
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 PiLink --version 1.0.1
                    
#r "nuget: PiLink, 1.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.
#:package PiLink@1.0.1
                    
#: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=PiLink&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=PiLink&version=1.0.1
                    
Install as a Cake Tool

PiLink DLL is a .NET SDK that provides a simple and reliable way to integrate Pi Plus / PiPay into both card-present and card-not-present payment environments.

The library abstracts the Pi Plus executable and exposes a clean, object-oriented API for processing transactions, managing tokens, launching hosted payment flows, and retrieving transaction status.

Copyright © 2020–2026 Kourosh Tari


Features

  • Card-present and card-not-present transaction support
  • Tokenization and card-on-file payments
  • Hosted Payment Form (HPF) integration
  • Tip and surcharge handling
  • EMV, receipt, and transaction detail parsing
  • Simple API with minimal setup

Architecture Overview

The SDK exposes a single primary class:

PiPlusLink contains all objects, methods, and response classes required to interact with Pi Plus.


Core Methods

Initialization

LaunchPiPlus()

creditsale
creditauth
creditreturn
creditcapture
creditvoid
creditadjust
gettoken
paynow
payform
paystatus
paycancel
using PiLink;
PiPlusLink myLink = new PiPlusLink();
myLink.LaunchPiPlus();
myLink.transFields.Amount = Convert.ToDouble(textAmount);
myLink.transFields.Ticket = textTicket;
myLink.transFields.Ptk = textPTK;
myLink.transFields.Address = textAddress;
myLink.transFields.Email = textEmail;
myLink.transFields.Executable = textExe;
myLink.transFields.FirstName = textFname;
myLink.transFields.LastName = textLname;
myLink.transFields.Path = textPath;
myLink.transFields.Serial = textSerial;
myLink.transFields.Token = textToken;
myLink.transFields.Userid = textUser;
myLink.transFields.Zip = textZip;
bool success = myLink.CreditSale();
myLink.transactionDetails.TransactionType
myLink.transactionDetails.TransactionResult
myLink.transactionDetails.Amount
myLink.transactionDetails.ApprovedAmount
myLink.transactionDetails.TipAmount
myLink.transactionDetails.ApprovalCode
myLink.transactionDetails.Token
myLink.transactionDetails.CardType
myLink.transactionDetails.CardHolder
myLink.transactionDetails.Description
myLink.transactionDetails.Ptk
myLink.transactionDetails.LastFour
myLink.transactionDetails.Expiration
myLink.transactionDetails.Surcharge
myLink.transactionDetails.AvsResult
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  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.