Reference Applications

Warning

These applications and their code are not intended for use in field deployment, they are only intended to provide some additional understanding for developers using the library.



Android

Download the Android Kotlin Reference App Project.

Download the Android Java Reference App Project.

To run the reference project:

  1. Extract the zip file

  2. Copy the PaymentSdk AAR file into the app/libs folder

  3. Launch Android Studio

  4. Either select “Open an existing Android Studio project” from the splash screen or select “Open” from the File menu

  5. Select the extracted AndroidReferenceApp folder

  6. Make sure the JDK location is pointing to Java 1.8.


iOS

Download the iOS Reference App Project.

To run the reference project:

  1. Extract the zip file

  2. Copy the PaymentSdk.xcframework file into the PSDKReferenceApp folder

  3. Launch XCode

  4. Click on the TARGETS and select PSDKReferenceApp

  5. In the section “Frameworks, Libraries, and Embedded Content” select [+] sign to add a framework

  6. A popup will open, from the “Add Other” dropdown select “Add Files”

  7. Select the PaymentSdk.xcframework from the PSDKReferenceApp folder

  8. Make sure the framework is configured for “Embed & Sign”

  9. Update the “Signing & Capabilities” with your “Team”, “Provisioning Profile”, and “Signing Certificate”

  10. Run the app


Linux

Download the Linux Reference App Project.

To run the reference project:

  1. Extract the PSDK library to a separate directory saving the full path to PSDK_PATH environment variable

  2. Extract the Linux reference application and change to resulting directory

  3. Create a directory for building and change to this directory

  4. Run “cmake -DPSDK_PATH=$PSDK_PATH ../”

  5. Run “make”

  6. Run psdk_reference_app executable


Windows

Download the Windows Reference App Project.

To run the reference project:

  1. Extract the application, and open the WindowsReferenceApp.sln using visual studio.

  2. Download the latest version of PaymentSDK and PaymentSdkUi Nuget Packages.

  3. Install both .nupkg files using Nuget Package Manager in Visual Studio

  4. Click Deploy on local machine on the top menu.


Windows Dot Net

Download the Windows Dot Net Reference App Project.

To run the reference project:

  1. Extract the application, and open the DotNetReferenceApp.sln using visual studio.

  2. Inside Solution Explorer, in project DotNetReferenceApp.sln, right click “References”, then add VerifoneSdk dll into a separate lib folder.

  3. Deploy on local machine with green start menu.


Java

Download the Java Reference App Project.

To run the reference project:

  1. Extract the zip file.

  2. Copy the PSDK library PaymentSdk-xxx.jar to app/libs.

  3. Build the app: ./gradlew build.

  4. Execute the jar file: “java -jar app/build/libs/app.jar”.