Give your customers the benefits of a Bluetooth integration with CabCard's payment terminals.
Our simple, developer-friendly tools and support makes it easy.
Straightforward library to make your integration as quick and easy as possible.
Our terminals communicate with our payment services using a SIM. Your app just needs to initiate the transaction.
The documentation is easy to use and covers all functionality, so you won't need to guess how things work.
Download our Android library, example application and documentation. Then get integrating!
The .aar file must be added to the Android Project manually. Follow these instructions if you're not sure.
import services.cabcard.CabCard; import services.cabcard.connectors.BluetoothLEConnector; import services.cabcard.CabCardEventListener; ... BluetoothLeConnector bc = ... CabCardEventListener l = ... CabCard cc = new CabCard(bc, l); cc.testConnection(); cc.startTransaction(255); // 2.55 GBP cc.getLastReceipt();
It's good practice to call CabCard.release()
in your Activity's onDestroy method. This closes the Bluetooth connection properly:
CabCard cc = new CabCard(bc, l); ... @Override protected void onDestroy() { super.onDestroy(); if (cc != null) { cc.release(); } }
Using the CabCard Bluetooth Android library with Bluetooth firmware version 8.13D and below is not officially supported, due to known issues. Although all terminals deployed after March 2020 are shipped with version 8.13D or later, devices shipped earlier than this date may have earlier firmware issues. Therefore, it's strongly encouraged to check the firmware version and update it to version 8.13D within your application.
BluetoothLeConnector bc = ... FirmwareCheckCompleteCallback callbac = ... //connect and pair with `bc` device CabCard.updateFirmwareIfNecessary(context, bc, callback)
It may be necessary for users to complete a bluetooth master reset on the CabCard terminal in order to update the firmware. This can be performed as follows:
Our developer support will help you get your integration up and running quickly and painlessly.
Contact developer support