- SpringBoot (java)
- Maven
- MySQL database
- Update the
application properties
file on theresources
folder to suite your environment - Run
mvn install
to set up the project dependencies - Run the main class
SimpleRestServerApplication.java
, this should run smoothly if all dependencies are setup correctly
-
Endpoint /api/v1/payment
-
Type
POST
-
Expects
JSON
-
Sample request
{ "reference":"WESDTRESFF", "channel":"channel", "paymentMethod":"AGENT", "amount":10000, "registrationNumber":"S13/20852/12" }
-
Expected success Response
{ "error": false, "message": "Payment received for S13/20852/12" }
-
Expected Error Response
{ "error": true, "message": "Error Message" }
OR
Any other html response code other than 200
On receiving a payment notification, the system validates the registration number against the students' enrollment table, then retrieves the student's record to process notifications
Enjoy :)