Skip to content

Unofficial Go SDK for Paystack.com that suits my personal use

License

Notifications You must be signed in to change notification settings

theghostmac/paystack-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paystack-go-sdk

Unofficial Go SDK for Paystack.com

Overview

The paystack-go-sdk provides a convenient and straightforward way to interact with the Paystack API using Go. This SDK covers various Paystack API endpoints, allowing you to manage transactions, customers, dedicated virtual accounts, and transfers programmatically.

Features

  • Manage transactions: initialize, verify, export, partial debit
  • Manage customers: create, list, fetch, update, validate, whitelist/blacklist, deactivate authorization
  • Manage dedicated virtual accounts: create, assign, list, fetch, requery, deactivate, split transactions, remove split
  • Manage transfers: initiate, finalize, bulk transfer, list, fetch, verify

Check the Changelog for upcoming features and TODOs.

Installation

To install the paystack-go-sdk package, use the following command:

go get github.com/theghostmc/paystack-go-sdk

Usage

You can learn about the usage for every function currently supported by visiting the examples folder

Running Tests

You can run the tests using the provided Makefile:

make test

Note that there are functions that do not return any data from Paystack under the tests folder. This is probably because the local tests and CI/CD test job uses a test secret key (sk_test).

About

Unofficial Go SDK for Paystack.com that suits my personal use

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published