PosPaymentExternalSdk

Singleton object for managing the POS Payment External SDK.

This object provides methods to initialize, access, and manage the POS Payment External SDK. It must be initialized in an ComponentActivity before using.

Example usage:

class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
PosPaymentExternalSdk.initialize(this, CommunicationType.INTENT) // or CommunicationType.AIDL
// Other initialization code
}

override fun onDestroy() {
super.onDestroy()
PosPaymentExternalSdk.clear()
}
}

⚠️ Important: Manifest Setup Required

For proper functioning, you must add the following to your AndroidManifest.xml:

<manifest ...>
...
<queries>
<intent>
<action android:name="cashbox.emoney.service" />
</intent>
</queries>
...
</manifest>

Functions

Link copied to clipboard
fun clear()

Clears the reference to the activity.

Link copied to clipboard
Link copied to clipboard
fun initialize(componentActivity: ComponentActivity, communicationType: CommunicationType)

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