Paystack.Net.SDK 1.0.0

.Net API for Paystack payment system

There is a newer version of this package available.
See the version list below for details.
Install-Package Paystack.Net.SDK -Version 1.0.0
dotnet add package Paystack.Net.SDK --version 1.0.0
<PackageReference Include="Paystack.Net.SDK" Version="1.0.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.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Still on the roadmap

  • SubAccounts
  • Plans
  • Subscriptions
  • Transfers
  • Invoices
  • etc

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

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Still on the roadmap

  • SubAccounts
  • Plans
  • Subscriptions
  • Transfers
  • Invoices
  • etc

Release Notes

This package required .Net framework 4.6

Version History

Version Downloads Last updated
1.3.7 95 5/24/2019
1.3.6 213 1/18/2019
1.3.3 177 10/25/2018
1.3.2 119 10/15/2018
1.3.0 167 8/31/2018
1.2.0 319 5/8/2018
1.1.0 348 12/31/2017
1.0.2 387 12/27/2017
1.0.1-alpha 260 12/26/2017
1.0.0 295 12/26/2017
1.0.0-alpha 211 12/25/2017
Show less