ALATPay.NET
1.0.0
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
<PackageReference Include="ALATPay.NET" Version="1.0.0" />
<PackageVersion Include="ALATPay.NET" Version="1.0.0" />
<PackageReference Include="ALATPay.NET" />
paket add ALATPay.NET --version 1.0.0
#r "nuget: ALATPay.NET, 1.0.0"
#:package ALATPay.NET@1.0.0
#addin nuget:?package=ALATPay.NET&version=1.0.0
#tool nuget:?package=ALATPay.NET&version=1.0.0
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.
- Email: support@alatpay.com
- Website: ALATPay
- GitHub Issues: Please create an issue in this repository if you encounter any bugs.
| Product | Versions 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. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net5.0
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.