Skip to content

Case study

An open-source .NET Standard library that wraps the Paygate gateway, adding card, debit card and instant EFT payments to .NET apps.

Payment integration

Paygate Integration

Nanotech Computers built IPaygateService, an open-source .NET Standard library that wraps Paygate, one of South Africa's established payment processors. It lets .NET developers add card, debit card and instant EFT payments without building the integration from scratch.

The challenge

Integrating a payment gateway usually means working through vendor documentation and handling encryption and request-signing details by hand. It also means writing boilerplate that has little to do with the product itself. IPaygateService exists to remove that overhead for .NET developers working with Paygate specifically.

The solution

IPaygateService ships as a NuGet package:

Install-Package IPaygateService

Once installed, initiating a payment is a few lines of code:

var paygateService = new PaygateService("your-paygate-id", "your-encryption-key");
var paymentRequest = new PaymentRequest { Amount = 1000, Reference = "Order123" };
var response = paygateService.InitiatePayment(paymentRequest);
Console.WriteLine(response.TransactionStatus);

The library wraps Paygate's payment initiation flow behind a simple, strongly-typed API, covering credit card, debit card and instant EFT payment methods.

Status

IPaygateService's last published update was version 2.0.2 in 2018. It remains available and installable via NuGet, with plans to bring it up to current .NET standards and the latest Paygate API.

Have a product in mind?

From a first sketch to the App Store, we design and ship software that feels effortless. Tell us what you are making.