This repository demonstrate how to use Midtrans with Go
- Make sure you have do registration on Midtrans
- Clone this repository
- Type
cd Midtrans-Go
- Make a .env file and copy all properties from .env.example file to your .env file.
- Make sure too that you read the notes that provided on .env.example file
- Then copy this command on your terminal
go build
- Finally, you can run your application with
go run main.go
- Happy coding 💫
1. /midtrans?paymentType=?
Notes: paymentType query only accept two values which are gopay/shopeepay
This application only demonstrate how to use midtrans with gopay/shopeepay with dummy data that already provided. However, you should have understand how it works if you read the InitDummyData
method carefully, and can change it to make data dynamically based on User input.
Feel free to contact me from my Instagram Account or Linkedin