All pages
Powered by GitBook
1 of 1

Loading...

Introduction

This document provides instructions for software developers who want to create iOS software solutions that include MagTek devices connected to an iOS host. MagTek Universal SDK

(MTUSDK) incorporates MagTek SCRA and MagTek PIN Pad SCRA devices into one SDK. This document is part of a larger library of documents designed to assist MagTek device implementers.

The following are absolute prerequisites:

· DynaFlex Family Programmer’s Manual

About the MagTek Sample Code

The sample code provides Swift demonstration source code and a reusable MTUSDK library that provides developers of custom software solutions with an easy-to-use interface for MagTek devices. Developers can distribute the MTUSDK library to customers or distribute internally as part of an enterprise solution.

Nomenclature

  • Device refers to the MagTek devices that receives and responds to command set.

  • Host refers to the piece of general-purpose electronic equipment the device is connected or paired to, which sends data to and receives data from the device. Host types include but not limited to PC and Mac computers, tablets, and smartphones. When “host” must be used differently, it is qualified as something specific, such as “USB host.”

  • User in this document generally refers to the cardholder.

Tested operating systems:

  • iOS 13 and above.

  • Xcode 14 and above.

When connecting to the DynaFlex II PED device by WebSocket, a client certificate and its certificate chain must be installed on the iOS device.

The Root Certificate, Sub CA Certificate, and Client private key Certificate as referenced in document DynaFlex TLS Certificate Installation Manual. The client private key certificate (e.g. filename client.p12) must be accessible to the custom software that makes a secure WebSocket connection to the DynaFlex II PED.

After creating the certificates and transferring them in the iOS device, load the certificate chain into the iOS device by follow these steps. The certificate names shown here are for reference only.

  1. Delete the previously installed certificates prior to beginning this procedure. If the certificate chain is current, skip this installation section. View the certificates by going to Settings à General à VPN & Device Management.

  1. Copy the certificate chain to the iOS device. Touch the Root certificate DF-2-1_RootCA.pem to download to iOS device.

  1. Go to Settings > General >VPN & Device Management > Select Root DF2-1

  1. Select Install.

  1. Enter Passcode.

  1. Press Install twice.

  1. Repeat the same steps above for the SubCA certificate Amce_SubCA.pem and for the Client certificate Client.p12. For Client, iOS will ask for an additional certificate password, enter the password used during the creation of the Client certificate when prompted, and then press Next.

  1. Enable Certificates by going to Settings à About à Certificate Trust Settings

  1. When building the custom app, the Client certificate must be loaded into the data member of CertificateInfo during the call to createDevice(). See below as an example to access the client certificate.

The following instructions are for Bluetooth pairing the DynaFlex II Go.

  1. Place the device into Pairing Mode by pressing and holding the power button on device until 4 beeps and release the button. The 4th LED will blink green.

  1. When in pairing mode and the first time connecting to device, the host will prompt for a pairing request. Enter the pairing code. The default code is "000000".

System Requirements

Connect via WLAN

Connect via Bluetooth LE