In this tutorial, I am going to show you how to create a payment method using an Android device with NFC.
In my case, I am going to use Mifare Classic 1K Card to make the tutorial. The bracelet that we already have uses Mifare Classic 1K Tag.
I have to develop an application who reads the identification and send it to a web soap web service.
The Microservice Architecture
As we can see in the image below, the bracelet is going to be read for the Android App and send the ID and the amount of the payment to the REST Payment Service who is going to transform the JSON format to a SOAP format and send it to the Bank Payment Service.
The REST service is going to follow the Microservice and the Hexagonal Architecture. Which is going to have his own database. To read more about this Architectures you can follow the next links hexagonal-architecture and introduction-to-microservices.
Continue reading →