performTransaction

@JvmStatic
fun performTransaction(context: Context, paymentLauncher: ActivityResultLauncher<Intent>, paymentInterface: PaymentInterface<*>, transactionRequest: TransactionRequest, merchantUiParameters: MerchantUiParameters = MerchantUiParameters.create())

Starts a transaction.

Parameters

context

The Context used to start the Payment Activity.

paymentLauncher

The ActivityResultLauncher used to receive the result of the transaction.

paymentInterface

The instance if the target PaymentInterface where the transaction will happen.

transactionRequest

The request in the form of a Terminal API JSON string.

merchantUiParameters

Optional definition of UI customizations.