Paystack.Net.SDK
1.3.3
See the version list below for details.
dotnet add package Paystack.Net.SDK --version 1.3.3
NuGet\Install-Package Paystack.Net.SDK -Version 1.3.3
<PackageReference Include="Paystack.Net.SDK" Version="1.3.3" />
paket add Paystack.Net.SDK --version 1.3.3
#r "nuget: Paystack.Net.SDK, 1.3.3"
// Install Paystack.Net.SDK as a Cake Addin #addin nuget:?package=Paystack.Net.SDK&version=1.3.3 // Install Paystack.Net.SDK as a Cake Tool #tool nuget:?package=Paystack.Net.SDK&version=1.3.3
New Feature
The version now includes paystack charges. This is important if you want the customer to bear the charge in addition to the product or services cost.
This is based on Ibrahim Lawal's Gists here
####Usage To calculate the total amount with charge.
var amountWithCharges = Paystack.Net.SDK.Fees.ChargeHelper.AddCharge(500000);
Get the calculated amount should you want to display it to the customer before payment
var amt = Paystack.Net.SDK.Fees.ChargeHelper.CalculatedCharge(500000);
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. |
-
- 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. This realese includes fees.