{"repo":"Midtrans/midtrans-go","free":true,"listed":false,"github":"https://github.com/Midtrans/midtrans-go","clone":"git clone https://github.com/Midtrans/midtrans-go.git","description":"This is the Official Go API client/library for Midtrans Payment API. More information about the product and see documentation at http://docs.midtrans.com for more technical details","language":"Go","stars":141,"topics":["go","midtrans-go","golang","golang-lib","payment-gateway"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Midtrans Go Library Midtrans :heart: Go ! Go is a very modern, terse, and combine aspect of dynamic and static typing that in a way very well suited for web development, among other things. Its small memory footprint is also an advantage of itself. This module will help you use Midtrans product's REST APIs in Go. 1. Installation 1.1 Using Go Module Run this command on your project to initialize Go mod (if you haven't): then reference midtrans-go in your project file with import : 1.2 Using go get Also, the alternative way you can use go get the package into your project 2. Usage There is a type named Client ( coreapi.Client , snap.Client , iris.Client ) that should be instantiated through function New which holds any possible setting to the library. Any activity (charge, approve, etc) is done in the client level. 2.1 Choose Product/Method We have 3 different products that you can use: - Snap - Customizable payment popup will appear on your web/app (no redirection). doc ref - Snap Redirect - Customer need to be redirected to payment url hosted by midtrans . doc ref - Core API (VT-Direct) - Basic backend implementation, you can customize the frontend embedded on your web/app as you like (no redirection). doc ref - Iris Disbursement - Iris is Midtrans’ cash management solution that allows you to disburse payments to any bank accounts in Indonesia securely and easily. doc ref To learn more and understand each of the product's quick overview you can visit https://docs.midtrans.com","default_branch":null,"files":null,"tree":[],"storefront":"/r/Midtrans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Midtrans/midtrans-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}