Paystack.Net.SDK
1.3.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Paystack.Net.SDK --version 1.3.0
NuGet\Install-Package Paystack.Net.SDK -Version 1.3.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="Paystack.Net.SDK" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Paystack.Net.SDK --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Paystack.Net.SDK, 1.3.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 Paystack.Net.SDK as a Cake Addin #addin nuget:?package=Paystack.Net.SDK&version=1.3.0 // Install Paystack.Net.SDK as a Cake Tool #tool nuget:?package=Paystack.Net.SDK&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
New Feature
Charge Endpoint is now included in this version
Sample web Application
Check out the sample web Application
Usage
Transactions
First, Instantiate PaystackTransactionAPI: Add required using
using Paystack.Net.SDK.Transactions;
Transaction Initialization
var paystackTransactionAPI = new PaystackTransaction(YOUR_SECRET_KEY_HERE);
var response = await paystackTransactionAPI.InitializeTransaction("customer@gmail.com", 500000);
if(response.status){
.....
}
Transaction Verification
var paystackTransactionAPI = new PaystackTransaction(YOUR_SECRET_KEY_HERE);
var response = await paystackTransactionAPI.VerifyTransaction("cipyd2ikxw");
Transaction Listings
var paystackTransactionAPI = new PaystackTransaction(YOUR_SECRET_KEY_HERE);
var response = await paystackTransactionAPI.ListTransactions();
Fetch Transaction
var paystackTransactionAPI = new PaystackTransaction(YOUR_SECRET_KEY_HERE);
var response = await paystackTransactionAPI.FetchTransaction(9149218);
Charge Authorization
var paystackTransactionAPI = new PaystackTransaction(YOUR_SECRET_KEY_HERE);
var response = await paystackTransactionAPI.ChargeAuthorization("AUTH_lqnf8xjy5j", "mark2kk@gmail.com", 5000);
View Transaction Timeline
var paystackTransactionAPI = new PaystackTransaction(YOUR_SECRET_KEY_HERE);
var response = await paystackTransactionAPI.TransactionTimeline("cipyd2ikxw");
Customers
Requires using Paystack.Net.SDK.Customers namespace and an instance of PaystackCustomers
Create Customer
var paystackCustomerAPI = new PaystackCustomers(YOUR_SECRET_KEY_HERE);
var response = await paystackCustomerAPI.CreateCustomer("person@live.com", "John", "Doe", "08098786543");
List Customers
var paystackCustomerAPI = new PaystackCustomers(YOUR_SECRET_KEY_HERE);
var response = await paystackCustomerAPI.ListCustomers();
Authors
- Mark Adesina - DeveloperslearnIt
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Still on the roadmap
- Invoices
- etc
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 10.0.3)
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.3.8.1 | 16,849 | 6/17/2021 |
1.3.7 | 2,114 | 5/24/2019 |
1.3.6 | 1,031 | 1/18/2019 |
1.3.3 | 833 | 10/25/2018 |
1.3.2 | 735 | 10/15/2018 |
1.3.0 | 1,231 | 8/31/2018 |
1.2.0 | 1,121 | 5/8/2018 |
1.1.0 | 1,132 | 12/31/2017 |
1.0.2 | 1,643 | 12/27/2017 |
1.0.1-alpha | 992 | 12/26/2017 |
1.0.0 | 1,167 | 12/26/2017 |
1.0.0-alpha | 802 | 12/25/2017 |
This package required .Net framework 4.6