Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inuoshios/paystack-go-sdk
💸 An unofficial Golang SDK for Paystack.
https://github.com/inuoshios/paystack-go-sdk
fintech go golang paystack-api paystack-sdk
Last synced: about 1 month ago
JSON representation
💸 An unofficial Golang SDK for Paystack.
- Host: GitHub
- URL: https://github.com/inuoshios/paystack-go-sdk
- Owner: inuoshios
- License: mit
- Created: 2022-12-24T09:56:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-02T12:25:44.000Z (about 2 years ago)
- Last Synced: 2024-10-15T01:26:49.767Z (3 months ago)
- Topics: fintech, go, golang, paystack-api, paystack-sdk
- Language: Go
- Homepage: https://paystack.com
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Paystack Golang SDK
🐈 An unofficial Golang SDK for [Paystack](http://paystack.com).
## Installation
To install this package, use the command below
```sh
go get github.com/rxxcc/paystack-go-sdk
```## Usage/Examples
### Import the package
```go
import "github.com/rxxcc/paystack-go-sdk"
```_Get your keys from your Paystack dashboard and add it into your environment variables_
`To initialize a new client`
```go
package mainimport (
paystack "github.com/rxxcc/paystack-go-sdk"
)var (
sKeys = "{Your secret key}"
)func main() {
// Handle error
newClient, _ := paystack.NewClient(sKeys)
}
````To create a new transaction`
```go
// --------------------------------- //
func main() {
testCase := &paystack.TransactionBody{
Amount: "300",
Email: "[email protected]",
}
transactionData, err := newClient.InitializeTransaction(transactionData)
}
```## License
MIT
## Author
Inu John O.