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 | |
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
Place the
uSDK.framework
directory into the project directoryIn Xcode, click on the project. Then click on the
ThreeDS-Sample
target. Finally, click onBuild Phases
.Expand the
Link Binary With Libraries
section.Click the
+
Then click
Add Other
and chooseAdd Files
Navigate to the
uSDK.framework
directoryClick
Open
Return to
Build Phases
Click the
+
button in the upper right hand cornerAdd a new
Copy Files Phase
In the
Copy Files Phase
, in theDestination
dropdown, selectFrameworks
Press the
+
in theCopy Files
phasePress
Add Other
, locateuSDK
and clickOpen
Configuration
Enter your license key in the
LICENSE_KEY
user defined variable in Xcode’sBuild Settings
.To change the URL that the app points to, modify the
BASE_URL
user defined variable in Xcode’sBuild Settings
.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
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