Skip to content
rl404Public

About

Unofficial golang API wrapper for xfers (V4 Indonesia).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Xfers-go

License: MIT GitHub tag (latest SemVer) Go Reference

xfers-go is unofficial golang API wrapper for xfers. Only for V4 indonesian xfers.

For official documentation, go here.

Features

  • Get xfers account's balance
  • Get disbursement bank list
  • Validate bank account
  • Create payment
    • virtual account
    • retail outlet
    • QRIS
    • e-wallet
  • Get payment
  • Get payment list + filter + pagination
  • Simulate payment
  • Create disbursement
  • Get disbursement
  • Get disbursement list + filter + pagination

Installation

go get github.com/rl404/xfers-go

Quick Start

package main

import (
    "log"

    "github.com/rl404/xfers-go"
)

func main() {
    // Prepare API and secret key.
    apiKey := "test_xxx"
    secretKey := "abc123"

    // Create xfers client.
    x := xfers.NewDefault(apiKey, secretKey, xfers.Sandbox)

    // Get your xfers's account balance.
    balance, code, err := x.GetBalance()
    if err != nil {
        log.Println(code, err)
        return
    }

    log.Println(code, balance)
}

For more detail config and usage, please go to the documentation.

License

MIT License

Copyright (c) 2021 Axel

About

Unofficial golang API wrapper for xfers (V4 Indonesia).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages