pos-payment-external-sdk

External SDK for integrating cashier/client software with pos-payment-app via Intent and AIDL.

Compatibility with pos-payment-app

Use a matching pair from a single row.

pos-payment-apppos-payment-external-sdk
3.9.7+1.10.0
3.9.0 – 3.9.61.9.3
3.7.5 – 3.8.81.9.0 – 1.9.3
3.7.1 – 3.7.41.8.1
3.7.01.8.0
3.5.7 – 3.6.11.8.0
3.5.0 – 3.5.71.7.0 – 1.8.0

Changelog

1.10.0 — 2026-11-01 … 2026-11-09

- Breaking changes (update the SDK and the app together — see the compatibility matrix above). A successful purchase now carries exactly one receipt: card → SdkSuccessAnswer.Purchase.receipt, QR → qrReceipt; invoice is deprecated — use receipt?.invoice ?: qrReceipt?.invoice. PurchaseResult adds QrOrderCreated — exhaustive when needs a new branch. Intent responses no longer include the "reference" extra — the invoice is inside the receipt. Why they cannot be updated separately: the internal AIDL receipt callback ReceiptDataCallback.onSuccess changed its argument count (one → three), so AAR 1.9.3 and below do not work with app 3.9.7 and above — the app cannot deliver even the first receipt to the integrator.

- QR payment. New overload purchase(amount, customMetaData, timeOut, currency, type): PaymentType (CARD / QR / CARD_AND_QR) and Currency (RUB, BYN, EUR, USD). In AIDL mode the purchase flow emits PurchaseResult.QrOrderCreated with QrPaymentData (orderId, QR image as Base64 PNG, provider, amount) — the integrator renders the QR code; in INTENT mode the POS app shows the QR code.

- Receipt. A successful QR payment completes as PurchaseResult.Success with qrReceipt (QrReceiptData: invoice, orderId, paymentId, amount, currency, status and other fields). getReceiptData(reference) also returns a QR receipt for QR operations. Card ReceiptData adds currency — ISO 4217 currency code ("RUB", "BYN", …); null when the currency is unknown (legacy offline operations).

- QR cancellation. cancelQr(orderId, amount: Long?) cancels a paid QR order; null means the full amount. Available in AIDL and Intent.

- Candidate authorization. Replaces login/getCredentials (deprecated): getCandidatesForAuth(filter), authorizeCandidates(candidates) — including 2FA confirmation by calling again with "twoFaCode" in options, getAuthorizedExternalCandidates(), logoutCandidates(candidates).

- Purchase history. getPurchases(offset, limit) — a page from newest to oldest; getPurchase(guid) — a purchase with its operations.

- Fiscal status. getFiscalStatus() now includes shiftDateTime.

- A purchase without an explicit payment method (purchase(amount, customMetaData)) runs as CARD. QR requires the overload with type.

- Deprecated. purchase(amount, customMetaData, timeOut) — use the overload with currency/ type; SdkSuccessAnswer.Purchase.invoice — use receipt?.invoice ?: qrReceipt?.invoice; ReceiptData.customMetaData — metadata is delivered via a separate onSuccess parameter.

- Fixes. AID/TSI on receipts are uppercased.

1.9.3 — 2026-09-17 … 2026-11-01

- Out-of-paper error. SdkExceptionType / POSException add OutOfPaperException — reported in PurchaseResult.Error.exceptionType when the printer is out of paper.

- Acquiring host availability. AcquiringException adds HostNotAvailableException.

- stopTransaction improvements (correct completion of an active operation).

1.9.2 — 2026-09-17

- Repeat-flow fix: parse and handle errors such as CardEntryMethodRepeatRequiredException / CardEntryMethodChangeRequiredException in the PurchaseResult flow so the external client can retry card entry.

1.9.1 — 2026-09-16

- stopTransaction fix: timeouts and correct completion when the operation has not yet reached the final callback.

1.9.0 — 2026-09-16

- Terminal serial number: getTerminalInfo

- Card-search timeout. purchase, cancel, cancelWithoutCard, fiscalPurchase and fiscalCancel gained optional timeout: Int? = null in seconds. Kotlin purchase(...) calls without timeout stay source-compatible via $default. Java clients do not.

- AuthStatus. Authorization status now carries bank details. Optional response fields: bankTerminalID — String? — bank terminal id, merchantID — String? — merchant id, bankAndMerchantName — String? — bank and merchant name.

- Error classification on PurchaseResult: val exceptionType: SdkExceptionType? = null in Error

1.8.1 — 2026-08-11 … 2026-09-16

- AIDL bind switched to appContext — fewer races when Activity is destroyed mid-operation.

- Internal robustness of the purchase path against exceptional errors (prep for exceptionType in 1.9.0).

- Package reorganization, Kotlin / AGP updates; minSdk compatibility check. Public method signatures are almost unchanged.

1.8.0 — 2026-03-30 … 2026-08-11

- Stabilized the AIDL executor and module build (dropped extra dependencies).

- External SDK fixes without changing method contracts.

1.7.0 — 2026-01-28

- Partial cancel without a card. cancelWithoutCard now requires amount: String (previously only rrn: String). Signature: cancelWithoutCard(amount: String, rrn: String). Calls with rrn only no longer compile — breaking change.

1.6.0 — 2025-12-23

- Fiscalization status. PosPaymentSdkFiscalManager adds getFiscalStatus(): Result<SdkSuccessAnswer.GetFiscalStatus>. The response is FiscalStatus (isFiscalized, shiftStatus, KKT/FN numbers, cashier, TIN, etc.).

1.5.0 — 2025-12-18

- Manual posting of an offline operation: postOfflineOperation(invoice: String): Result<SdkSuccessAnswer.PostOfflineOperation> (API stabilized together with the queue).

- Kozen fix (vendor build/runtime).

1.4.0 — 2025-12-12

- Delete from the offline queue: deleteFromOfflineQueue(invoice: String) (PosSdkActionExecutor.deleteFromOfflineQueue).

1.3.0 — 2025-12-10

- Fixed supplier TIN in FiscalNode.supplier.

- Extended VAT rates in fiscal nodes (including 22%, 22/122, and others in taxes).

1.2.0 — 2025-12-05

- Fiscal request/FiscalDataRequest gained receipt application parameters (cashier, customer, payments and related fields).

1.1.0 — 2025-11-18 … 2025-12-05

- Fiscal purchase/cancel via PosSdkActionExecutor: purchase(request: PosRequest, …) and cancel(request: PosRequest, rrn: String, …) returning FiscalPurchaseResult.

- Cancel without a card: cancelWithoutCard(rrn: String).

- Offline black list: getOfflineBlackList(), deleteFromBlackList(pan: String), setCheckBlackListOfflineOperation(isEnabled: Boolean), isCheckBlackListOfflineOperationEnabled().

- Offline enable/disable flags unified to set…(isEnabled) / is…Enabled() pairs.

1.0.6 — 2025-10-13 … 2025-11-18

- Transaction metadata: purchase gained customMetaData: Map<String, String> = emptyMap().

- Typed offline errors on the purchase path (messages/Result.Error for offline scenarios).

- Black list / logout / offline-delete improvements.

1.0.5 — 2025-09-12

- AIDL fix: two consecutive or parallel requests made the service stop responding — call queue/serialization restored.

1.0.4 — 2025-09-12

- Offline queue: getOfflineQueue(): Result<SdkSuccessAnswer.GetOfflineQueue>, postOfflineOperation(invoice: String), setAutoOfflineOperationPosting(isEnabled: Boolean) / isAutoOfflineOperationPostingEnabled()

1.0.3 — 2025-08-21 … 2025-09-12

- Fiscal shifts and cheque in PosPaymentSdkFiscalManager: openShift(cashierName: String, cashierTin: String), closeShift(cashierName: String, cashierTin: String), processCheque(cheque: FiscalDataRequest)

- External SDK manifest (visibility/queries for pairing with pos-payment-app).

1.0.2 — 2025-05-26 … 2025-08-21

- wakeUp intent: before an AIDL operation the SDK wakes the pos-payment-app UI (including Android 15).

- Manifest and related fixes.

1.0.1 — 2025-03-21

- Abort the current operation: stopTransaction(): Result<SdkSuccessAnswer.StopTransaction>.

Before 1.0.1 — 2024-07-24 … 2025-03-21

First public SDK surface. Intent and AIDL.

- Library start + sample: login, Activity Result Launcher.

- Payments: purchase, cancel, getReceiptData, fetchRevise, auto batch (tryAutoBatchPreviousSession / doAutoBatch).

- Session: login / logout, getAuthStatus, getCredentials, setOfflineMode / getOfflineMode.

- Screens: history / settings / queue / auth; Mifare.

- Printing (PosPaymentSdkPrinterManager): printText, printBarcode, printQrcode, printBitmap, feedPaper.

- Error codes in Result.Error; CommunicationType (Intent / AIDL); intermediate purchase states in the AIDL Flow (InitOperation, ReaderReady, Processing).

Packages

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard