Skip to main content

Release V5.2.6

Terminal Device Support

We've expanded the range of supported payment terminal devices:


User Interface Improvements

Enhanced display and interaction experience on Sunmi terminals:


FEATURE

Added Support for New Sunmi Terminal Models

[UP-722]

Context: Users were limited to working with only a few Sunmi terminal models such as P2 SmartPad and P2 SE, preventing the use of newer models for payment processing. Additionally, newer SDK version 5.0 required support for different interfaces for receipt printing and error handling.

Solution: Implemented comprehensive support for Sunmi P3, P2 Lite SE, and P3 Mix terminal models with Kernel 100. Created architecture to support both old and new SDK versions using an interface approach, mapped error codes for the new SDK, and updated the terminal application to use the latest SDK libraries.

Impact: Merchants can now utilize these newer Sunmi terminal models for processing payments, providing more hardware options and ensuring continued operations as older models reach end-of-life. Full functionality is available including proper receipt printing and comprehensive error handling across all supported models.

System Changes Overview

  • Database Changes: None
  • Configuration Changes: Terminal model classifier updated to recognize new models: P3, P2 Lite SE, and P3 Mix
  • Code Changes: Added support for SDK version 5.0 interfaces alongside existing SDK support
  • Filesystem Changes: Updated SDK library from PayLib-release-1.4.49.aar to PayLib-release-2.0.18.aar
  • Data Migration: None

Implementation Actions

  • Added new terminal models to the terminal classification system
  • Implemented interface-based approach for SDK version compatibility
  • Created error code mapping for new SDK to ensure proper error processing
  • Updated scanner module configuration to support both older and newer package names
  • Modified terminal application build configuration to support new models
  • No manual Update Actions are required as all changes are implemented through standard code deployment

IMPROVEMENT

Sunmi Terminal UI Optimization

[UP-722]

Context: New Sunmi terminal models (P3, P3 Mix, and P2 Lite SE) required UI adaptations to accommodate different screen sizes and resolutions. The existing user interface was not optimized for these display formats, potentially causing display issues and degraded user experience.

Solution: Implemented comprehensive UI layout adaptations for all screen types across the new terminal models. Optimized text sizes, button dimensions, and element positioning to ensure proper display on the different screen formats while maintaining a consistent user experience.

Impact: Terminal users now experience properly formatted screens on all supported Sunmi models. The optimized UI ensures correct display of payment forms, transaction information, and system messages across all supported terminal devices with proper adaptation to each device's specific screen dimensions.

System Changes Overview

  • Database Changes: None
  • Configuration Changes: None
  • Code Changes: Modified layout XML files and dimension resources for UI components
  • Filesystem Changes: Added new layout directories for P3 and P2 Lite SE screen resolutions
  • Data Migration: None

Implementation Actions

  • Created specialized layouts for P3 (720×1600) and P2 Lite SE (both FW 355×662 and HD 391×648 variants)
  • Optimized text sizes, margins, and button dimensions for each display type
  • Implemented percentage-based guidelines for responsive layouts on various screen sizes
  • Adapted element positioning for both portrait and landscape orientations
  • Updated icon and logo sizing for optimal display on each terminal model
  • No Update Actions are required as all changes are implemented through standard code deployment

FIX

Removed A-Z Button from Enter Transaction ID Screen

[UP-884]

Context: On some terminal devices, tapping the 'A-Z' button on the "Enter Transaction ID" screen would open the native keyboard with no option to return back, causing navigation issues and preventing users from completing their transaction.

Solution: Removed the 'A-Z' button from the "Enter Transaction ID" screen since transaction IDs only accept numeric values, eliminating the problematic navigation path while maintaining all necessary input functionality.

Impact: Improved user experience with more intuitive keyboard controls that match the expected input type (numbers only), ensuring consistent interface across all terminal models and preventing users from encountering navigation dead-ends.

System Changes Overview

  • Database Changes: None
  • Configuration Changes: None
  • Filesystem Changes: None
  • Data Migration: None
  • Code Changes: Modified Java classes related to keyboard visibility control

Implementation Actions

  • Removed the 'A-Z' button from the keyboard layout on the Transaction ID input screen
  • Implemented consistent numeric-only keyboard across all terminal models
  • No Update Actions are required as this is a purely UI-related change implemented through standard application deployment

IMPROVEMENT

Optimized Receipt Display for Sunmi P3 Mix Terminals

[UP-942]

Context: Sunmi P3 Mix terminals use a wider 80mm paper format compared to the standard 58mm width used by other terminals. The standard receipt template was not optimized for this wider format, causing misalignment and poor readability of transaction information.

Solution: Implemented dynamic receipt template formatting that automatically detects the Sunmi P3 Mix terminal model and adjusts the receipt layout accordingly. Modified the receipt elements including address display, line width, and spacing to properly utilize the wider paper format.

Impact: Merchants using Sunmi P3 Mix terminals now receive properly formatted receipts that make full use of the wider paper format. This improves receipt readability, professional appearance, and ensures all transaction information is properly aligned and displayed.

System Changes Overview

  • Database Changes: None
  • Configuration Changes: None
  • Code Changes: Updated receipt generation logic with dynamic width detection and formatting
  • Filesystem Changes: None
  • Data Migration: None

Implementation Actions

  • Implemented terminal model detection for receipt template selection
  • Created 80mm-specific receipt layout optimized for P3 Mix terminals
  • Adjusted line spacing and element positioning for wider receipt format
  • Modified address field display to utilize the additional horizontal space
  • No Update Actions are required as changes are automatically applied when deployed

IMPROVEMENT

Optimized transaction response delivery on Sunmi terminals

[GA-1842]

Context: On Sunmi/SoftPOS terminals running version 5.2.5, transaction responses were only sent to the gateway after the user tapped the "Done" button on the confirmation screen, causing unnecessary delays in the payment process. This especially impacted merchants using the terminals in both managed and cloud modes.

Solution: Implemented a dual-approach solution to address the architectural constraints of Android. First, added Broadcast Receiver functionality to send immediate transaction notifications when the confirmation screen appears. Second, optimized the UI by removing the "Done" button for standard transactions and implementing automatic screen closing with appropriate timeouts.

Impact: Merchants experience significantly faster transaction processing with responses delivered immediately after processor approval. The streamlined UI automatically closes after displaying transaction results (1.5 seconds for standard transactions, 10 seconds for those requiring receipt printing or signature), eliminating unnecessary user interaction and improving transaction flow.

System Changes Overview

  • Database Changes: None
  • Configuration Changes: None
  • Code Changes: Modified transaction response logic and UI behavior in Sunmi/SoftPOS application
  • Filesystem Changes: None
  • Data Migration: None

Implementation Actions

  • Implemented Broadcast Receiver functionality to send transaction results immediately when the approval screen appears
  • Maintained standard API response delivery for backward compatibility with existing integrations
  • Modified UI confirmation screens with the following improvements:
    • Removed the "Done" button from approval screens without receipt/signature requirements
    • Replaced the button area with the application logo for better visual appearance
    • Implemented automatic screen timeout of 1.5 seconds for standard transactions
    • Set 10-second timeout for transactions requiring receipt printing or signature
  • Applied these UI improvements across all supported terminal models (P2 Lite SE, P2 Pro, P2 SMARTPAD, P3, P3 Mix, V3 Mix, and phone screens)