Isolus / gocardless-go

GoCardless Pro Golang Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go client for Gocardless Pro API

Godoc Build Status Go Report Card

This package allows integrating your Golang application with Gocardless Pro

Installation

Standard go get:

go get github.com/epigos/gocardless-go

Coverage

  • Customers
  • Customer Bank Accounts
  • Mandates
  • Payments

Usage

Create a Client instance, providing your access token and the environment you want to use:

package main

import (
    "fmt"
    "os"
    gocardless "github.com/epigos/gocardless-go"
)

func main() {
    token := os.Getenv("GOCARDLESS_ACCESS_TOKEN")
    client := gocardless.NewClient(token, gocardless.SandboxEnvironment)
    
    // get customers
    res, err := client.GetCustomers()
    for _, c := range res.Customers {
        fmt.Println(c)
    }
}

Documentation

About

GoCardless Pro Golang Client

License:MIT License


Languages

Language:Go 100.0%