iOS Sample App 6.4

Overview

The sample iOS app demonstrates the recommended way of integrating the uSDK as well as invoking its methods. The application requires iOS uSDK version 6.4, you can download the latest release from the corresponding release page.

The Release

Download link

3ds-samples-ios-app-6.4.76+rel.3.zip

Version

6.4.77+rel.13

Last updated at

Dec 17, 2020

Scope

The application supports 2.1 and 2.2 frictionless and challenge flows.

Prerequisites

  • The latest version of Xcode - as of this writing 11.4.1

Configuring the Sample App

Installation

  1. Place the uSDK.framework directory into the project directory

  2. In Xcode, click on the project. Then click on the ThreeDS-Sample target. Finally, click on Build Phases.

  3. Expand the Link Binary With Libraries section.

  4. Click the +

  5. Then click Add Other and choose Add Files

  6. Navigate to the uSDK.framework directory

  7. Click Open

  8. Return to Build Phases

  9. Click the + button in the upper right hand corner

  10. Add a new Copy Files Phase

  11. In the Copy Files Phase, in the Destination dropdown, select Frameworks

  12. Press the + in the Copy Files phase

  13. Press Add Other, locate uSDK and click Open

Configuration

  1. Enter your license key in the LICENSE_KEY user defined variable in Xcode’s Build Settings.

  2. To change the URL that the app points to, modify the BASE_URL user defined variable in Xcode’s Build Settings.

  3. Optionally, you can clean (cmd+shift+k) or "super clean" (cmd+option+shift+k) the project after doing steps 1 & 2 so that your changes are sure to take affect.

Please note, if you run the sample backend locally and the mobile application on a physical device, then the URL the app talks to the backend should be a LAN address versus http://localhost

Running the Sample App

  1. In the upper left corner of Xcode, press the run or play button.

Changelog

  • Updated to use uSDK 6.4.77+rel.6

  • Added a text field that lets the user input to which backend server the application should send transactions