Hi Readers,
We will see how to implement payments in your application using instamojo java wrapper.
Github Repo: https://github.com/teja618/Instamojo-Java-PaymentGateway
Please hit a star to the above repo and follow on github.
It’s a spring boot Restful API to create a payment request.
It will require 4 external dependencies to be added in to the pom.xml
- Instamojo Java Wrapper
- HTTP Client
- GSon
- HTTP Core-Apache
- Apache Common codec
- commons Logging
All the above dependencies need to added in the Pom.xml (Already there in github code).
Create an account in http://test.instamojo.com/ ; then get client ID and client Secret using Generate Credentials section.
Then create a controller like how i have done in the above github code-
Just replace clientID and clientSecret with yours in the API context in the controller class.
Replace redirect url with urs.
Then RUN the API!