Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

243 Commits

Repository files navigation

Paystack Client (GO)

Go ReferenceGo Report Card

An open source client for Paystack in GO.

Usage

package main
import (
"context""fmt""log"
p "github.com/gray-adeyi/paystack""github.com/gray-adeyi/paystack/models"
)
funcmain() {
// Initialize a Paystack client with your secret keyclient:=p.NewClient(p.WithSecretKey("<your-secret-key>"))
// Prepare a response model to hold the returned transactionsvarresponse models.Response[[]models.Transaction]
// Retrieve all transactionsiferr:=client.Transactions.All(
context.Background(), &response,
p.WithQuery("perPage", "1"),
); err!=nil {
log.Fatal(err)
}
fmt.Println(response.Status)
fmt.Println(response.Message)
fmt.Println(response.Data)
}

See Documentation for more.

Documentation

See Documentation for more on this package.

Disclaimer

This project is an Open Source client library for Paystack. It is not officially endorsed or affiliated with Paystack. All trademarks and company names belong to their respective owners.

Contributions

Thank you for being interested in contributing to github.com/gray-adeyi/paystack. There are many ways you can contribute to the project:

Other Related Projects

NameLanguageFunctionality
Paystack CLIPythonA command line app for interacting with paystack APIs
pypaystack2PythonA client library for integrating paystack in python
paystackGo (This project)A client library for integration paystack in go
@gray-adeyi/paystack-sdkTypescript/JavascriptA client library for integrating paystack in Javascript runtimes (Node,Deno,Bun)
paystackDartA client library for integration paystack in Dart

About

An open source client for Paystack in GO.

Topics

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages