The payment service is a Spring Boot application that exposes a REST API to manage payments.
The payment service exposes the following endpoints :
- GET /payments/credit-transfers : returns the list of all payments
- GET /payments/credit-transfer/{id} : returns the payment with the given id
- POST /payments/credit-transfer : creates a new payment
- PUT /credit-transfer/reverse/{paymentId} : reverses the payment with the given id
The swagger documentation for the api endpoints is available at the following URL : http://localhost:7070/swagger-ui.html
To build the payment service, run the following command :
mvn clean install
The payment service depends on the following projects :
- [account-service] - to retrieve the account information