Skip to content

saadullahsaeed/go-tangocard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Tango Card RaaS API Client for v2

GoDoc

Golang client for the Tangocard RaaS API v2.

This is a Work in Progress and I've so far only implemented the methods I needed for my project.

Currently supported methods:

  • Get Customers
  • Get Accounts
  • Get Account Details
  • Get Catalog
  • Get Orders
  • Create Order
  • Get Order Details

Installation

go get github.com/saadullahsaeed/go-tangocard

Usage

Get Catalog
client := tangocard.NewClient(
	"PlatformIDHere",
	"PlatformKeyHere",
	nil,
)
res, err := client.GetCatalog()
fmt.Println(err)
fmt.Println(res)
Create Order
req := &tangocard.CreateOrderCriteria{
	AccountIdentifier:  "test",
	Amount:             50.0,
	CustomerIdentifier: "test",
	UTID:               "U12345",
}

client := tangocard.NewClient(
	"PlatformIDHere",
	"PlatformKeyHere",
	nil,
)
res, err := client.CreateOrder(req)
fmt.Println(err)
fmt.Println(res)

About

Golang client for the Tango RaaS API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages