This represents an example of the strategy design pattern. The code presents a payment processor use case leveraging a simple payment API via a Spring Boot microservices.
The example is inspired by the first chapter of the Head First Design Patterns Book by authors Eric Freeman & Elisabeth Freeman.
https://youtube.com/playlist?list=PLnFO49HiE0U-FLjYnTR0bBykV7stc2zaV