https://github.com/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://github.com/xendit/xendit-go
balance card cardless-credit disbursement ewallet go golang hacktoberfest invoice payment payment-gateway payout qr-payments recurring-payments retail-outlet virtual-account xendit
Last synced: 2 months ago
JSON representation
Xendit REST API Client for Go - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets Services, QR Codes
- Host: GitHub
- URL: https://github.com/xendit/xendit-go
- Owner: xendit
- License: mit
- Created: 2019-12-23T07:41:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-10-01T15:14:16.000Z (9 months ago)
- Last Synced: 2026-02-20T11:44:51.174Z (4 months ago)
- Topics: balance, card, cardless-credit, disbursement, ewallet, go, golang, hacktoberfest, invoice, payment, payment-gateway, payout, qr-payments, recurring-payments, retail-outlet, virtual-account, xendit
- Language: Go
- Homepage: https://developers.xendit.co/api-reference/
- Size: 1.97 MB
- Stars: 156
- Watchers: 30
- Forks: 59
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# 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: 7.0.0
# Getting Started
## Installation
Install xendit-go with:
```shell
go get github.com/xendit/xendit-go/v7
```
Put the package under your project folder and add the following in import:
```golang
import xendit "github.com/xendit/xendit-go/v7"
```
To use a proxy, set the environment variable `HTTP_PROXY`:
```golang
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](https://dashboard.xendit.co/settings/developers#api-keys).
You can sign up for a free Dashboard account [here](https://dashboard.xendit.co/register).
```golang
xnd := xendit.NewClient("API-KEY")
```
# Documentation
Find detailed API information and examples for each of our product's by clicking the links below,
* [Invoice](docs/InvoiceApi.md)
* [PaymentRequest](docs/PaymentRequestApi.md)
* [PaymentMethod](docs/PaymentMethodApi.md)
* [Refund](docs/RefundApi.md)
* [Balance](docs/BalanceApi.md)
* [Transaction](docs/TransactionApi.md)
* [Customer](docs/CustomerApi.md)
* [Payout](docs/PayoutApi.md)
All URIs are relative to *https://api.xendit.co*. For more information about our API, please refer to *https://developers.xendit.co/*.
Further Reading
* [Xendit Docs](https://docs.xendit.co/)
* [Xendit API Reference](https://developers.xendit.co/)