Skip to content

Release 1.0.21

Choose a tag to compare

@phattran1201 phattran1201 released this 29 May 10:36
· 4 commits to main since this release

Features

  • iOS Support & SDK Integration: Integrated the PAX POSLink Semi-Integration iOS SDK (POSLinkSemiIntegrationSDK static library and header files) enabling native POS integration on iOS devices.
  • Unified TurboModule Architecture: Migrated the package architecture to a unified TurboModule structure (NativePaxPoslink.ts) with modern codegen support while maintaining backward compatibility with the legacy React Native bridge.
  • Exposed iOS Native Methods:
    • initPOSLink(ip, port, timeout): Initializes TCP communication with PAX terminals, supporting customizable port and timeout configurations.
    • makePayment(id, amount, tip, paymentType, ecrRefNum, showTip): Supports credit/debit transaction sales with optional tips and terminal-side tip prompts.
    • makeRefund(amount, ecrRefNum): Supports credit refund/return operations.
    • makeVoid(ecrRefNum): Voids specified credit transactions.
    • makeCloseBatch(): Triggers batch closeouts and processes batch counts/totals.
    • getBatchInformation(): Retrieves history and total details of the active batch.
    • checkVoidOrRefundTransaction(ecrRefNum): Queries local report database to check transaction status.
    • cancelTransaction(): Requests terminal cancellation and cleans up the active connection object.
  • Response Mapping Optimization:
    • Unified transaction response shapes with full parsing of authorization, host information, reference numbers, entry mode translations (e.g., contactless chip, contact chip, fallback swipe), card brand labels, and tip/surcharge fees.

Build & Toolchain

  • NPM & Bob Config: Configured react-native-builder-bob to automatically build ESM (lib/module), CommonJS (lib/commonjs), and TypeScript type declarations (lib/typescript).
  • Package Scripts: Added "build": "bob build" and integrated automatic compilation into the prebuild phase for better safety and DX.