performTransaction

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

Initiates a payment transaction.

This function launches the Adyen payment UI to handle the transaction flow. The result will be delivered to the callback registered with registerForPaymentResult.

Parameters

context

The Context used to start the payment activity.

paymentLauncher

The ActivityResultLauncher obtained from registerForPaymentResult.

paymentInterface

The PaymentInterface instance where the transaction will be processed, obtained from getPaymentInterface.

transactionRequest

The TransactionRequest containing the payload.

merchantUiParameters

Optional parameters to customize the UI of the payment flow.

See also