Skip to content

hipcar/go-xendit-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-xendit-client

Xendit Client written in Go. Un-official Xendit API Wrapper.

Documentation

Getting Started

go get github.com/hipcar/go-xendit-client

Init

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"
}

Balance

Account Type

Supported Account Type Value
xendit.AccountTypeCash CASH
xendit.AccountTypeHolding HOLDING
xendit.AccountTypeTax TAX

Get Balance

res, err := client.Balance.GetBalance(xendit.AccountTypeCash)

Credit Card

Virtual Account

Retail Outlet

Invoice

Disbursement

Forex

Name Validator

NPWP Validator

Releases

No releases published

Packages

No packages published

Languages