Totem Developer

Developer Center

Complete SDKs, API documentation, code samples, and debugging tools help you quickly integrate Totem payment hardware into self-service equipment.

Python C Java
# Totem card reader MDB communication example import totem_sdk reader = totem_sdk.CardReader(port="/dev/ttyUSB0") reader.connect(protocol="MDB") def on_payment(result): if result.status == "APPROVED": print(f"Payment approved: ¥{result.amount}") vending.dispense(result.slot) reader.on_transaction(on_payment) reader.start()

Quick Integration Guide

Integrate Totem payment hardware in 4 steps

1

Hardware Wiring

Complete device wiring per installation manual, connect MDB/CCtalk/USB to main controller.

2

Protocol Integration

Refer to API docs, communicate with payment module using MDB/CCtalk protocol commands.

3

Integration Testing

Use Totem debug tools for simulated transaction testing, verify payment flow integrity.

4

Deploy & Go Live

After testing, deploy in bulk and monitor device status via cloud platform.

SDK & Libraries

Multi-language SDKs covering mainstream development platforms

Java SDK v2.1.0

For Android self-service terminals

Python SDK v1.8.0

For Linux embedded devices

JavaScript SDK v1.3.0

For web management dashboards

C/C++ SDK v3.0.0

For embedded firmware development

Development Tools

Practical tools to improve integration efficiency

Totem CLI v1.5.0

Command-line debug tool

Totem Config GUI v2.0.0

GUI configuration tool

Totem Cloud API v1.2.0

Cloud device management API

Simulator v1.0.0

Payment flow simulator

Code Samples

Complete code references for common scenarios

C

MDB Protocol Basic Communication

Demo sending MDB commands via serial port and receiving responses

View Code
Python

Bill Validator Status Polling

Periodically query bill validator status and handle callback events

View Code
Java

Card Reader Transaction Flow

Complete swipe-authorize-charge-confirm transaction flow example

View Code
JavaScript

Cloud Device Monitoring Dashboard

Build real-time device monitoring UI with Totem Cloud API

View Code

Need Technical Support?

The Totem developer team provides one-on-one integration guidance

Contact Developer Team

Self-Declaration

Hosted in Hong Kong. Mainland China ICP filing is not required.