This package provides a go API client for the Neero Payment Gateway API
neero-go is compatible with modern Go releases in module mode, with Go installed:
go get github.com/NdoleStudio/neero-goAlternatively the same can be achieved if you use import in a package:
import "github.com/NdoleStudio/neero-go"- Payment Methods
POST /api/v1/payment-methods: Create Payment MethodPOST /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 IntentPOST /api/v1/transaction-intents/cash-out: Create Cash Out Payment IntentGET /api/v1/transaction-intents/{transactionId}: Find Transaction Intent By Id
An instance of the client can be created using New().
package main
import (
"github.com/NdoleStudio/neero-go"
)
func main() {
client := neero.New(neero.WithSecretKey("" /*Your Neero merchant account secret key*/))
}All API calls return an error as the last return object. All successful calls will return a nil error.
status, response, err := statusClient.Status.Ok(context.Background())
if err != nil {
//handle error
}You can run the unit tests for this client from the root directory using the command below:
go test -vThis project is licensed under the MIT License - see the LICENSE file for details
