ALATPay.NET 1.0.0

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

ALATPay.NET

Simplifying Payments, Empowering Businesses.

ALATPay.NET is a .NET library that simplifies integrating payment functionalities into your application. Designed for merchants and developers, it wraps the powerful ALATPay APIs, enabling seamless interactions with payment services like merchant onboarding, business management, and more.

Table of Contents


Features

  • Merchant Onboarding: Create and manage merchant profiles.
  • Business Management: Fetch, update, and track business information.
  • Secure Transactions: Built-in mechanisms for secure API calls using keys and tokens.
  • Scalable Design: Supports various .NET target frameworks (e.g., .NET 6.0, .NET 7.0, and .NET 8.0).

Installation

Install the ALATPay.NET NuGet package using the Package Manager Console or .NET CLI.

Package Manager Console:

Install-Package ALATPay.NET


# **Usage**

The most important type in this library is the **[ALATPayClient](https://wemabank.visualstudio.com/ALATpay/_git/ALATPay.NET?path=/ALATPay.NET/ALATPayClient.cs)** class. You can create an instance of this class as follows:

```csharp
var testOrLiveSecret = ConfigurationManager.AppSettings["AlatPaySecret"];
var ocpSubscriptionKey = ConfigurationManager.AppSettings["OcpKey"];
var api = new ALATPayClient(testOrLiveSecret, ocpSubscriptionKey);

Please see usage examples (and instructions) below:

Transactions API

To consume the Transactions API, use methods from the ITransactionsApi interface (available via the Transactions property of ALATPayClient, viz:


// Initializing a transaction
var response = api.Transactions.FetchTransaction(new Guid());
if (response.Status)
  // use response.Data
else
  // show response.Message

The ITransactions is defined as follows:

public interface ITransactions
{
        Task<TransactionModel> FetchTransaction(Guid id, CancellationToken token);

        Task<CustomerListModel> ListCustomers(Guid merchantId, Guid businessId, CancellationToken cancellationToken);

        Task<TransactionListModel> ListTransactions(Guid merchantId, Guid userId, Guid businessId, decimal amount, DateTime startAt, DateTime endAt, int paymentMethodId = 0, string status = "All", string currency = "NGN", int page = 1, int offset = 10, CancellationToken cancellationToken = default);
}

Other APIs


Other APIs are implemented in like manner and exposed via the ALATPayClient type as given below:

// Bank Transfer APIs

var request = new GenerateVirtualAccountModel { ... };
var response = api.BanKTransfers.Generate(request);

// etc

Support

For inquiries or support, please contact Horace or the Wema Bank Development Team.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.1 307 3/4/2025
1.0.0 202 12/12/2024