GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gray-adeyi/paystack: An open source client for Paystack in GO.

BranchesTags
Open more actions menu

Latest commit

 

History

243 Commits
243 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
enum
enum
 
 
integration
integration
 
 
models
models
 
 
.gitignore
.gitignore
 
 
.python-version
.python-version
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
api_client.go
api_client.go
 
 
api_client_test.go
api_client_test.go
 
 
apple_pay_client.go
apple_pay_client.go
 
 
apple_pay_client_test.go
apple_pay_client_test.go
 
 
bulk_charges_client.go
bulk_charges_client.go
 
 
charge_client.go
charge_client.go
 
 
customer_client.go
customer_client.go
 
 
dedicated_virtual_account_client.go
dedicated_virtual_account_client.go
 
 
dispute_client.go
dispute_client.go
 
 
doc.go
doc.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
integration_client.go
integration_client.go
 
 
miscellaneous_client.go
miscellaneous_client.go
 
 
mkdocs.yml
mkdocs.yml
 
 
optional_payloads.go
optional_payloads.go
 
 
payment_pages_client.go
payment_pages_client.go
 
 
payment_request_client.go
payment_request_client.go
 
 
plan_client.go
plan_client.go
 
 
product_client.go
product_client.go
 
 
product_client_test.go
product_client_test.go
 
 
pyproject.toml
pyproject.toml
 
 
queries.go
queries.go
 
 
refund_client.go
refund_client.go
 
 
rest_client.go
rest_client.go
 
 
settlement_client.go
settlement_client.go
 
 
sub_account_client.go
sub_account_client.go
 
 
subscription_client.go
subscription_client.go
 
 
terminal_client.go
terminal_client.go
 
 
transaction_client.go
transaction_client.go
 
 
transaction_client_test.go
transaction_client_test.go
 
 
transaction_split_client.go
transaction_split_client.go
 
 
transfer_client.go
transfer_client.go
 
 
transfer_control_client.go
transfer_control_client.go
 
 
transfer_recipient.go
transfer_recipient.go
 
 
uv.lock
uv.lock
 
 
verification_client.go
verification_client.go
 
 

Repository files navigation

Paystack Client (GO)

Go Reference Go 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"
)

func main() {
	// Initialize a Paystack client with your secret key
	client := p.NewClient(p.WithSecretKey("<your-secret-key>"))

	// Prepare a response model to hold the returned transactions
	var response models.Response[[]models.Transaction]

	// Retrieve all transactions
	if err := 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:

  • Star on GitHub
  • Try github.com/gray-adeyi/paystack and report bugs/issues you find
  • Buy me a coffee

Other Related Projects

Name Language Functionality
Paystack CLI Python A command line app for interacting with paystack APIs
pypaystack2 Python A client library for integrating paystack in python
paystack Go (This project) A client library for integration paystack in go
@gray-adeyi/paystack-sdk Typescript/Javascript A client library for integrating paystack in Javascript runtimes (Node,Deno,Bun)
paystack Dart A client library for integration paystack in Dart

About

An open source client for Paystack in GO.

Topics

paymentpaystackpaystack-apipaystack-librarypaystack-sdkpaystackhq

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.