Skip to content

moovfinancial/moov-go

Repository files navigation

Moov Logo

GoDoc Go Report Card Apache 2 License X

Moov - Go Client

The official Go client for the Moov payments API.

Installation

import (
	"github.com/moovfinancial/moov-go/pkg/moov"
)

This SDK requires an API key. To generate an API login to the Moov Dashboard and follow the following instructions on API Keys. If you have not done so already, use the Moov Dashboard to create an account.

Note

Note that API Keys for Sandbox and Production are different keys.

export MOOV_PUBLIC_KEY="public key here"
export MOOV_SECRET_KEY="secret key here"

In your Go program, create a new Moov client initiated with your public and secret keys.

mc, err := moov.NewClient(
  moov.WithCredentials(moov.CredentialsFromEnv()), // optional, default is to read from environment
)

Examples Usage

Checkout the examples exist for ach, card acquiring, debit push/pull, and rtp.

License

Apache License 2.0 - See LICENSE for details.