To start using the API, import the database.sql file to the current mysql database system then access the midtrans.html file to use the api.
The API folder consist of all php source code to interact with the database
- addTransaction.php = adds a new transaction to the database
- addUser.php = adds a new user
- databaseContents.php = constants needed to connect to the database
- getTransaction.php = get transactions of a user with user id as input
- getUser.php = get's user's information such as user's balance and name with user id as the input
- updateUserName.php = update the user's balance and name with user's id as input
Open the midtrans.html file and fill in the form according to the API's function, Submitting the form will outputs the JSON response from the API itself