# GoMidtrans

> Payout and refund support for the Go client of the Midtrans payment gateway.

- **Type:** Contribution
- **Role:** Contributor
- **Period:** Sep – Dec 2019
- **Focus:** Backend
- **Stack:** Go, Midtrans API, Iris payouts
- **View my commits:** https://github.com/mychaelgo/go-midtrans/commits/master/?author=mychaelgo
- **Page:** https://mychaelgo.com/projects/gomidtrans

## Problem

The Go library for Midtrans had no support for Iris payouts or refunds, and some failed requests did not return errors.

## What Mychael did

- Added Iris payout support: checking balance and fetching payout history.
- Added the refunds struct.
- Return errors when creating a Snap token fails or when the API responds with a non-200 status, and fixed error logs.

## Screenshots

- My commits: error handling, refunds and the Iris payout work. (https://mychaelgo.com/projects/gomidtrans/commits.webp): List of Mychael's commits in go-midtrans from September to December 2019
