initialize

fun initialize(componentActivity: ComponentActivity, communicationType: CommunicationType)

Initializes the POS External Payment SDK with the provided activity and communication type.

This method sets up the necessary components and prepares the SDK for using. It must be called before any other methods in PosPaymentExternalSdk are used.

Parameters

componentActivity

The activity is used for initialization. It should be the calling activity from which the SDK will operate.

communicationType

The type of communication to be used by the SDK. Can be either CommunicationType.AIDL or CommunicationType.INTENT.