Getting Started
Depending on your build setup, add the Maven repository block to either:
build.gradle(Groovy DSL), orsettings.gradle.kts(Kotlin DSL)
//dependencyResolutionManagement block
dependencyResolutionManagement {
repositories {
maven {
name = "ProphiusNexus"
url = uri("https://nexus.prophius-api.com/repository/maven-releases/")
// Load Nexus credentials from local.properties
val localPropsFile = rootDir.resolve("local.properties")
if (localPropsFile.exists()) {
val props = Properties().apply {
load(localPropsFile.inputStream())
}
credentials {
username = props.getProperty("YOUR USERNAME") ?: ""
password = props.getProperty("YOUR PASSWORD") ?: ""
}
} else {
println("⚠️ Warning: local.properties not found. Credentials are missing.")
}
}
// Optional defaults
google()
mavenCentral()
}
}Add the SDK dependency in your module level build.gradle file of the project like below.
Security MechanismsRequired Dependencies
SDK needs some third party libraries and the integrator app must have these dependencies. The libraries which is shared below should be added to the build.gradle file.
Using the PayContactless Embed SDK Library
Before accessing the functions within the PayContactless Embed SDK library, there are a few steps to follow:
Initialization: Begin by calling the
startmethod.Accessing the SDK: Utilize the
getInstancemethod. This will allow you to access various methods underPayContactlessEmbed.Required Parameters:
Context: Application context
Organization Id: Predefined organization identenfier
Google Clould Project Number: Project Number of your project on Google Cloud
Remember to pass the these parameters as arguments when invoking the start method.
By adhering to these steps, you'll ensure the proper and utilization of the PayContactless Embed SDK library functions.
A sample method is highlighted below;
Where context (app context), organization (Integer), and the googleCloudProjectId (String).
PaycontaclessEmbed needs the acvitiy result to parse the Payment activity reponse. The onAcitivtyResult method of the SDK must be called in current activity's onActivityResult method.
A sample usage is highlighted below;
Last updated

