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:
Extract the zip file
Copy the PaymentSdk AAR file into the app/libs folder
Launch Android Studio
Either select “Open an existing Android Studio project” from the splash screen or select “Open” from the File menu
Select the extracted AndroidReferenceApp folder
Make sure the JDK location is pointing to Java 1.8.
iOS¶
Download the iOS Reference App Project
.
To run the reference project:
Extract the zip file
Copy the PaymentSdk.xcframework file into the PSDKReferenceApp folder
Launch XCode
Click on the TARGETS and select PSDKReferenceApp
In the section “Frameworks, Libraries, and Embedded Content” select [+] sign to add a framework
A popup will open, from the “Add Other” dropdown select “Add Files”
Select the PaymentSdk.xcframework from the PSDKReferenceApp folder
Make sure the framework is configured for “Embed & Sign”
Update the “Signing & Capabilities” with your “Team”, “Provisioning Profile”, and “Signing Certificate”
Run the app
Linux¶
Download the Linux Reference App Project
.
To run the reference project:
Extract the PSDK library to a separate directory saving the full path to PSDK_PATH environment variable
Extract the Linux reference application and change to resulting directory
Create a directory for building and change to this directory
Run “cmake -DPSDK_PATH=$PSDK_PATH ../”
Run “make”
Run psdk_reference_app executable
Windows¶
Download the Windows Reference App Project
.
To run the reference project:
Extract the application, and open the WindowsReferenceApp.sln using visual studio.
Download the latest version of PaymentSDK and PaymentSdkUi Nuget Packages.
Install both .nupkg files using Nuget Package Manager in Visual Studio
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:
Extract the application, and open the DotNetReferenceApp.sln using visual studio.
Inside Solution Explorer, in project DotNetReferenceApp.sln, right click “References”, then add VerifoneSdk dll into a separate lib folder.
Deploy on local machine with green start menu.
Java¶
Download the Java Reference App Project
.
To run the reference project:
Extract the zip file.
Copy the PSDK library PaymentSdk-xxx.jar to app/libs.
Build the app: ./gradlew build.
Execute the jar file: “java -jar app/build/libs/app.jar”.