PaybyrdSettingsSDK

object PaybyrdSettingsSDK

The PaybyrdSettingsSDK object is the entrypoint to execute actions about settings with a easy and comprehensive API

Functions

Link copied to clipboard
fun configureApn(context: Context, apnInfo: ApnInfo)

Configure the APN and set as current to terminal

Link copied to clipboard
fun configureKioskiApp(context: Context, appPackage: String, appActivity: String, isStatusBarEnabled: Boolean, isNavigationKeysEnabled: Boolean)

Configure the Kioski App that will be the launcher app to terminal

Link copied to clipboard
fun configureMobileDataRoaming(context: Context, isEnabled: Boolean)

Enable/Disable Terminal Mobile Data Roaming

Link copied to clipboard
fun createInitializationData(context: Context, initializationRequest: InitiateRequest): InitializationRequestData

INTEGRATOR APP - Create the object that contains all data to run initialization.

Link copied to clipboard
fun getAppData(context: Context): PaybyrdAppData

Obtain the Paybyrd`s Payment App information

Link copied to clipboard
fun getTerminalData(context: Context): TerminalData

Obtain the terminal information

Link copied to clipboard
fun installApp(context: Context, apkPath: String)

Install or Update an application

Link copied to clipboard
fun reboot(context: Context)

Reboot the terminal

Link copied to clipboard
fun respondInitialization(activity: Activity, resultCode: Int, initializationResponseData: InitializationResponseData)

PAYMENT APP -

Link copied to clipboard
fun setPaymentAppAutomaticPrinting(context: Context, automaticPrintingSettingsEnum: AutomaticPrintingSettingsEnum)

Configure Paybyrd Payment App Automatic Printing

Link copied to clipboard
fun setPaymentAppConfiguration(context: Context, appSettingsEnum: AppSettingsEnum, isEnabled: Boolean)

Configure Paybyrd Payment App

Link copied to clipboard
fun setPaymentAppResultScreen(context: Context, resultScreenSettingsEnum: PaymentResultScreenSettingsEnum)

Configure Paybyrd Payment Result Screen, that presents the transaction summary to user

Link copied to clipboard
fun unpackInitializationRequestData(intentExtras: Bundle): InitRequestData

PAYMENT APP -

Link copied to clipboard
fun unpackInitializationResponseData(intentExtras: Bundle): InitializationResponseData

INTEGRATOR APP - Unpack the initialization response data after onActivityResult call.

Properties

Link copied to clipboard
const val ACTION_RESULT_START_INITIALIZATION: String
Link copied to clipboard
const val ACTION_START_INITIALIZATION: String
Link copied to clipboard
const val CODE_INIT_ALREADY_INITIATED: Int = 3003

Code for failed initialization operation when the terminal already initiated with given merchant

const val CODE_INIT_ERROR_NO_MERCHANT_WITH_PERSON_ID: Int = 3004

Code for failed initialization operation when there is no personId for given credential.

Link copied to clipboard
const val CODE_INIT_FAILED: Int = 3002

Code for failed initialization operation with no specific scenario, more details can be accessed using InitializationResponseData.description

Link copied to clipboard
const val CODE_INIT_LOGGED_WITH_ANOTHER_PERSON_ID: Int = 3005

Code for failed initialization operation when the payment app is already initiated with another merchant

Link copied to clipboard
const val CODE_INIT_LOGGED_WITH_ANOTHER_USER: Int = 3006

Code for failed initialization operation when the payment app is already initiated with another user

Link copied to clipboard
const val CODE_INIT_SUCCESS: Int = 3001

Code for successful operation

Link copied to clipboard
const val INITIALIZATION_REQUEST_CODE: Int = 3001

Request Code to be used to call ActivityForResult