Skip to content

albertlieyingadrian/xendit-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xendit-Go

Description

Xendit-Go is an example of using Xendit API in Golang

Installation & Configuration

Ensure you have installed:

Examples

  • Run glide install to install all your dependencies

  • Go to examples folder

    cd src/test/examples

  • Create Disbursement

    go run create_disbursement.go

  • Disbursement Callback Server (Your server will run in port 3000)

    go run disbursement_callback.go

  • Hit localhost:3000/disbursement_callback_url with

    • method: POST
    • header: 'Content-Type: application/json'
    • body:
    {
      "user_id": "5785e6334d7b410667d355c4",
      "external_id": "12345",
      "amount": 1000,
      "bank_code": "BCA",
      "account_holder_name": "RAIDY WIJAYA",
      "disbursement_description": "Refunds for shoes",
      "status": "PENDING",
      "id": "57f1ce05bb1a631a65eee662"
    }

About

Example of using Xendit API in Golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages