Xendit Client written in Go. Un-official Xendit API Wrapper.
go get github.com/hipcar/go-xendit-client
package main
import (
"github.com/hipcar/go-xendit-client"
)
func main() {
xenditClient := xendit.NewClient()
xenditClient.EnableLog = true // logging is false by default
xenditClient.SecretKey = "YOUR_XENDIT_SECRET_KEY"
}
Supported Account Type | Value |
---|---|
xendit.AccountTypeCash | CASH |
xendit.AccountTypeHolding | HOLDING |
xendit.AccountTypeTax | TAX |
res, err := client.Balance.GetBalance(xendit.AccountTypeCash)