xendit / xendit-go

Xendit REST API Client for Go - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, QR Codes
https://developers.xendit.co/api-reference/
MIT License
134 stars 58 forks source link
balance card cardless-credit disbursement ewallet go golang hacktoberfest invoice payment payment-gateway payout qr-payments recurring-payments retail-outlet virtual-account xendit

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.

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