Introduction
Let's discover Smart POS in less than 5 minutes.
#
Getting StartedSmartPOS SDK is a simple to use SDK for the purpose of building Android App on POS terminals The SDK is divided into three(3) modules namely -
smart-pos-core
smart-pos-emv-pax
smart-pos-usb
this three modules should be downloaded and added to your project. In addition to these modules, you need to use eze simple library to so that the app will work better.
#
To start using the SDK, follow the steps below:add module smart-pos-core and module smart-pos-emv-pax to your project. If you want to make use of USB communication between the SDK and a PC, add the third module smart-pos-usb Configure the SDK in your android Application class or your main Activity or Fragment or Application class like below
#
Configure TerminalIn order to communicate effectively with the terminal, some initialization and configuration needs to be done.
#
GET TERMINAL CONFIGThe first thing to do is to get the terminal configuration of the pos from the server. After this you need to save the terminal configuration. Then you download your keys.
#
PROCESS TRANSACTIONFor you to process a successful transaction you need to first SetupTransaction, Start transaction, and then send your transaction to the server.
The code below explains the steps to take.
// start transaction this should be called after setupTransaction method
#
Print Transaction ReceiptAfter a complete transaction you will get a response from the as the transaction result CardTransactionResponse
class which contains information about the transaction result and some other informations.
To print the receipt of the transaction, you will have to create a layout in any way you like and then convert the page to a bitmap. This bitmap is what you will send to the printer.
To avoid uneccesary error during printing, you need to check the printer status.
Smart POS is built to support different programming patterns. You can choose to you use MVVM, MVC and any other pattern.
#
NoteADB must be installed and added to Path enviroment variable on the PC USB Debugging must be enabled in the Android terminal