Skip to content

Conversation

@zacdemi
Copy link

@zacdemi zacdemi commented Oct 9, 2025

Add Reader Status Info and Payment Attempt ID for iOS

Summary

  • Adds support for readerStatusInfo and paymentAttemptId as listed in the iOS 2025-09-12 Square changelog.
  • Ensures parity with the latest iOS SDK fields (ReaderStatusInfo, PaymentAttemptId).
  • Updates all enums to use string literal values for consistency with the native side.
  • Refactors all type declarations to use TypeScript primitive types (string, boolean, number) instead of capitalized constructor types (String, Boolean, Number), following TypeScript best practices.

Motivation

These changes keep the React Native SDK aligned with the most recent Square Mobile Payments SDK updates and improve type safety and IDE support for developers integrating with the module.

Testing

  • Verified that readerStatusInfo and paymentAttemptId are properly exposed and parsed in both iOS and Android bridges.
  • Confirmed enum string mappings match native values.
  • Manually tested end-to-end payment flow to confirm no regressions.

Changelog

Added

  • readerStatusInfo
  • paymentAttemptId

Changed

  • Updated enums to string-valued enums for consistency.
  • Switched all type declarations to TypeScript primitive types.

Notes

  • Follows CONTRIBUTING.md guidelines (Conventional Commits).
  • Branch: zacdemi/ios-reader-info-status
  • Commits:
    • feat: Add ReaderStatus Info and paymentAttemptID
    • refactor: Use Primitive Types

- updated all enums to use string values for consistency to match strings coming from native side.
All types now use the proper TypeScript primitive types (string, boolean, number) instead of the capitalized JavaScript constructor types (String, Boolean, Number). This follows TypeScript best practices and will provide better type checking and IDE support.
@zacdemi zacdemi changed the title Zacdemi/ios reader info status iOS Reader Status Info and Payment Attempt ID Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant