https://github.com/ndolestudio/neero-go
Go library for the Neero Payment Gateway API
https://github.com/ndolestudio/neero-go
neero payment-api
Last synced: 8 months ago
JSON representation
Go library for the Neero Payment Gateway API
- Host: GitHub
- URL: https://github.com/ndolestudio/neero-go
- Owner: NdoleStudio
- License: mit
- Created: 2025-09-20T17:07:56.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-20T20:33:41.000Z (9 months ago)
- Last Synced: 2025-10-01T08:50:51.452Z (8 months ago)
- Topics: neero, payment-api
- Language: Go
- Homepage: https://app.theneo.io/neero/neero-payment-gateway/transaction-intents
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# neero-go
[](https://github.com/NdoleStudio/neero-go/actions/workflows/main.yml)
[](https://codecov.io/gh/NdoleStudio/neero-go)
[](https://scrutinizer-ci.com/g/NdoleStudio/neero-go/?branch=main)
[](https://goreportcard.com/report/github.com/NdoleStudio/neero-go)
[](https://github.com/NdoleStudio/neero-go/graphs/contributors)
[](https://github.com/NdoleStudio/neero-go/blob/master/LICENSE)
[](https://pkg.go.dev/github.com/NdoleStudio/neero-go)
This package provides a go API client for the Neero Payment Gateway API
## Installation
`neero-go` is compatible with modern Go releases in module mode, with Go installed:
```bash
go get github.com/NdoleStudio/neero-go
```
Alternatively the same can be achieved if you use `import` in a package:
```go
import "github.com/NdoleStudio/neero-go"
```
## Implemented
- Payment Methods
- `POST /api/v1/payment-methods`: Create Payment Method
- `POST /api/v1/payment-methods/resolve-details`: Resolve Payment Method Details
- Balances
- `GET /api/v1/balances/payment-method/{paymentMethodId}`: Get Balance for a Payment Method
- Transaction Intents
- `POST /api/v1/transaction-intents/cash-in`: Create Cash In Payment Intent
- `POST /api/v1/transaction-intents/cash-out`: Create Cash Out Payment Intent
- `GET /api/v1/transaction-intents/{transactionId}`: Find Transaction Intent By Id
## Usage
### Initializing the Client
An instance of the client can be created using `New()`.
```go
package main
import (
"github.com/NdoleStudio/neero-go"
)
func main() {
client := neero.New(neero.WithSecretKey("" /*Your Neero merchant account secret key*/))
}
```
### Error handling
All API calls return an `error` as the last return object. All successful calls will return a `nil` error.
```go
status, response, err := statusClient.Status.Ok(context.Background())
if err != nil {
//handle error
}
```
## Testing
You can run the unit tests for this client from the root directory using the command below:
```bash
go test -v
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details