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

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