Pos Payment External Sdk
object 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()
}
}Content copied to clipboard
⚠️ 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>Content copied to clipboard
Functions
Link copied to clipboard
Gets the instance of PosPaymentSdkActionExecutor.
Link copied to clipboard
Gets the instance of PosPaymentSdkFiscalManager.
Link copied to clipboard
Gets the instance of PosPaymentSdkPrinterManager.
Link copied to clipboard
Gets the instance of PosSdkActionExecutor.
Link copied to clipboard
Initializes the POS External Payment SDK with the provided activity and communication type.