Mychael Go

GoMidtrans

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

The problem

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

What I 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

List of Mychael's commits in go-midtrans from September to December 2019
My commits: error handling, refunds and the Iris payout work.

Reading this with an AI tool? Get this page as Markdown.