PaybyrdPaymentSDK

object PaybyrdPaymentSDK

This object is the main object in the Paybyrd Payment SDK, here is possible to initiate a charge or refund transaction with a easy and comprehensive API

Functions

Link copied to clipboard
fun createTransactionData(context: Context, transactionRequest: TransactionRequest): TransactionRequestData

INTEGRATOR APP - Create the object that contains all data to start a transaction.

Link copied to clipboard
fun packQueryTransactionResponse(code: Int, transactionStatusEnum: TransactionStatusEnum, transactionResponseData: TransactionResponseData?): Cursor

PAYMENT APP -

Link copied to clipboard
fun queryTransaction(context: Context, queryTransactionRequest: QueryTransactionRequest): QueryTransactionResponse

INTEGRATOR APP - Create the object that contains all data to start a transaction.

Link copied to clipboard
fun respondTransaction(activity: Activity, resultCode: Int, transactionResponseData: TransactionResponseData)

PAYMENT APP -

Link copied to clipboard
fun unpackQueryTransactionRequest(contentValues: ContentValues): QueryTransactionRequest

PAYMENT APP -

Link copied to clipboard
fun unpackRequestData(intentExtras: Bundle): RequestData

PAYMENT APP -

Link copied to clipboard
fun unpackTransactionResponseData(intentExtras: Bundle): TransactionResponseData

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

Properties

Link copied to clipboard
const val CODE_ABORTED: Int = 2007

Code for aborted operation by the user

Link copied to clipboard
const val CODE_FAILED: Int = 2002

Code for failed operation with no specific scenario, more details can be accessed using Status Detail

Link copied to clipboard
const val CODE_FAILED_SHIFT_NOT_OPENED: Int = 2006

Code for failed operation when there is no shift opened to perform transactions

const val CODE_FAILED_TERMINAL_INITIALIZATION_FAILED: Int = 2004

Code for failed operation when the terminal failed when running the initialization process, the detail of failure can be accessed inside Status Detail

Link copied to clipboard
const val CODE_FAILED_TERMINAL_NOT_INITIALIZED: Int = 2003

Code for failed operation when the terminal is not initialized or there is no logged user on Paybyrd Payment APP

Link copied to clipboard
const val CODE_FAILED_TRANSACTION_NOT_FOUND: Int = 2005

Code for failed operation when there is no transaction found for specific requested operation eg. Performing a refund with wrong transaction referenced identifier

Link copied to clipboard
const val CODE_MISMATCH_CURRENCY: Int = 2008

Code for mismatch transaction currency

Link copied to clipboard
const val CODE_SUCCESS: Int = 1001

Code for successful operation

Link copied to clipboard
const val PAYBYRD_SDK_VERSION: <ERROR CLASS>

SDK Version

Link copied to clipboard
const val PAYMENT_REQUEST_CODE: Int = 1000

Request Code to be used to call ActivityForResult

Link copied to clipboard
const val RESULT_CODE_APPROVED: Int = 2000

Result Code for Approved Transaction

Link copied to clipboard
const val RESULT_CODE_FAILED: Int = 2001

Result Code for Failed Transaction, the details of failure can be accessed using TransactionResponseData