Skip to content

Xendit REST API Client for Go - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, QR Codes

License

Notifications You must be signed in to change notification settings

xendit/xendit-go

Repository files navigation

Xendit Go SDK

Xendit Go SDK

The official Xendit Go SDK provides a simple and convenient way to call Xendit's REST API in applications written in Go.

  • Package version: 6.0.0

Getting Started

Installation

Install xendit-go with:

go get github.com/xendit/xendit-go/v6

Put the package under your project folder and add the following in import:

import xendit "github.com/xendit/xendit-go/v6"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Authorization

The SDK needs to be instantiated using your secret API key obtained from the Xendit Dashboard. You can sign up for a free Dashboard account here.

xnd := xendit.NewClient("API-KEY")

Documentation

Find detailed API information and examples for each of our product's by clicking the links below,

All URIs are relative to https://api.xendit.co. For more information about our API, please refer to https://developers.xendit.co/.

Further Reading