Card Payments with Time & Materials Android Application

Marina Astapchik
IT Trends Research Specialist
May 9, 2012


Time and Materials application for Android tablet is a mobile point of sale (POS) application. It is a part of a complex payment solution which has the following components:

1. Time and Materials application running on an Android tablet;
2. PIN Entering Device (PED);
3. Payment gateway;
4. Accounting server.

Card payment process

In this article I will describe the implementation of the card payment process in the Time and Materials application. PED, ATM and Payment Gateway take part in this card payment.The payment process consists of the following steps:

1. Time and Materials application sends initial payment request to PED.
2. PED reads the card and the user PIN input, and sends this information to ATM.
3. The PED communication module extracts the required information pieces (EMV or magnetic card, card number, PIN block, EMV tags, etc.) from the PED-specific message and uses them to construct a payment request message in ISO 8583 format. j8583 library is used for ISO8583 message generation / parsing. The payment request message is then sent to the payment gateway.
4. The payment gateway processes the message, communicates with bank network and sends a response message to ATM containing the information whether the transaction was approved and optional EMV tags.
5. ATM parses the gateway response message and sends the approval status and optional EMV tags back to the PED.

The requirement was to have the ability to support different PEDs, so a generic PED interface was developed and used in the application's PED communication logic. This approach makes specific PED support implementation easier, allows different PED connection options (currently Bluetooth and USB), and also makes PED change transparent to the application. Currently supported PEDs are:

1. PED Simulator — in early stages of development we had no PED, so a PED Simulator application was developed to simulate basic operations with magnetic cards, such as swipe card, approve the amount and enter PIN number. It runs on Android smartphones and uses Bluetooth for communication with T&M.
2. SP30 — supports magnetic stripe and EMV cards, uses RS232 port for communication. A USB-to-serial adapter is used to connect this device to the Android tablet.
3. MPED400 — a more up to date device with magnetic stripe and EMV card support. It can connect via Bluetooth or serial port.


The part of the time and materials application that is responsible for card payment processing acts like an adapter between PED and Payment Gateway, converting the PED messages in proprietary format to ISO 8583 format that is used by Payment Gateway, and vice versa. The development of generic PED interface unifies and simplifies new device support and also allows easy PED interchange.

Figure 1 provides a simplified graphical representation of the architecture.

Figure 1: Application architecture

Figure 2 demonstrates the payment process:

Figure 2: Card payment process

Industries and Technology Areas:

Industries: payment card industry

Technology Areas: digital payment technologies, Time and Materials application, PIN Entering Device (PED), ATM, software development, Android. tablet


8 Characteristics Of The Next-Generation Financial Services Websites

When it comes to the face of business, it is important to change it over the time to keep up with the pace of innovation. Digital revolution sets its own rules on the way business is transformed. Brick-and-mortar shops are empowered with online versions, face-to-face payments – with one-click purchases,...

How Can AI Change The State of Cybersecurity

According to Wikipedia, financial crimes are “crimes against property, involving the unlawful conversion of the ownership of property (belonging to one person) to one's own personal use and benefit”. In the Internet age, financial crimes are often associated with cybercrime. Globally, this type of criminal activity is regarded as a...

Smart vs. Ricardian Contracts: What’s the Difference?

We continue to explore the world of the blockchain, and one of the conspicuous notions in this field is called “a smart contract”. In this article, we’re going to find out what the difference between a smart and a Ricardian contract is. However, before diving into the details, let’s answer...
insurance innovation

Insurance And Innovation: How Technology Disrupts Traditional Business

“The threat that inspires” – here’s how insurtech is referred to in media. Indeed, the innovation that comes to the industry has the disruptive nature. Well, it’s very early days for insurtech startups to transform the market but high customer expectations and rough competition encourage industry leaders to weigh the...