Project

General

Profile

Development #7198

Updated by Kyle Chong 3 months ago

Refer to: 

 * docs/planning/modules/M21_Hardware_Integration.md 
 * docs/planning/modules/M06_Payment_Tender.md 
 * relevant existing FPOS EDC integrations 

 Create a new independent .NET solution for reusable EDC integration. 

 The EDC solution must not depend on Build the common architecture used by POS+ and must be reusable by other POS applications. to communicate with external hardware. 

 Scope: 

 * Create a separate EDC Integration solution/project. 
 * Define a common EDC interface/contract. interfaces/contracts for supported hardware categories. 
 * Define common request/response models. Separate POS business logic from vendor/model-specific device implementation. 
 * Support multiple EDC vendors/models through individual adapters/implementations. reusable .NET library/DLL components. 
 * Allow device implementations to be selected based on POS Setup configuration. 
 Standardize applicable operations such as: 
 * * Initialize. 
 * * Connect. 
 * * Check Status. 
 * * Sale/Payment. 
 * * Void. 
 * * Refund device initialization, connection, disconnection, status and error handling where supported. applicable. 
 * * Cancel. 
 * * Settlement where supported. 
 * * Query/Retrieve transaction result where supported. 
 * Standardize common results such as: 
 * * Approved. 
 * * Declined. 
 * * Cancelled. 
 * * Failed. 
 * * Timeout. 
 * * Unknown. 
 * Keep vendor-specific SDK/protocol/communication handling protocol/SDK implementation inside the EDC solution. respective hardware adapter. 
 * Support applicable Serial/COM, TCP/IP, SDK or other communication methods. Allow new device models to be introduced without changing the consuming POS business flow. 
 * Support asynchronous/non-blocking EDC operations. Ensure hardware operations do not unnecessarily block the Cashier UI. 
 * Do not expose vendor-specific implementation requirements Return standardized results/errors to the consuming POS applications. application. 
 * Produce a versioned DLL/package that can Allow the same hardware integration components to be referenced reused by POS+ and other Qube POS applications. 

 Example architecture: Conceptually: 

 > Qube.EDC Solution POS Application 
 >         │ 
 > ├──         ▼ 
 > Common Hardware Interface / Models 
 >         │ 
 >         ├── EDC Vendor / Model Vendor/Model Adapter A 
 >         ├── EDC Vendor / Model Vendor/Model Adapter B 
 > ├── EDC Vendor / Model         └── Vendor/Model Adapter C 
 > │ 
 > └── Future EDC Models 

 Done when: A consuming POS application POS+ can perform consume supported EDC operations hardware through a common interface standardized interfaces without knowing the underlying EDC vendor/model protocol. containing vendor-specific protocol implementation in its business modules.

Back