Skip to content

chore: present sheet WIP 1 - #55

Open
manideepk90 wants to merge 21 commits into
mainfrom
new-arch
Open

chore: present sheet WIP 1#55
manideepk90 wants to merge 21 commits into
mainfrom
new-arch

Conversation

@manideepk90

Copy link
Copy Markdown
Contributor

No description provided.

manideepk90 and others added 21 commits July 13, 2026 15:54
…ypeScript

- Deleted obsolete ReasonML files: AppearanceTransformer.res, EventValidator.res, NewArchUtils.res, PaymentSheetEventManager.res, ReactNativeUtils.res, ResponseHandler.res, CvcWidget.res, NativePaymentWidget.res, PaymentWidget.res.
- Introduced new TypeScript files: EventValidator.ts, NewArchUtils.ts, ReactNativeUtils.ts, NativePaymentWidget.ts, CVCElementView.tsx, PaymentElement.ts, PaymentElementView.tsx, CvcWidget.ts, NativePaymentWidgetImpl.ts.
- Updated CVC and Payment widgets to use new TypeScript components and utility functions.
- Enhanced event validation and response handling in the new TypeScript implementations.
- Introduced NativePaymentElementView.mm to serve as the Fabric host view for PaymentElement and CVCWidget.
- Created NativePaymentWidgetViewRegistry to manage the registration of inner NativePaymentWidgetView instances.
- Updated NativePaymentWidget to support both old-arch and new-arch (Fabric) view management.
- Refactored CvcWidget to CVCElement and PaymentElement to use the new Fabric architecture.
- Added HyperElements context to manage payment sessions and elements.
- Enhanced error handling and event forwarding for payment results and events.
- Removed deprecated CvcWidget and PaymentElement implementations.
…ction

- Removed the support for 'paymentElement' and 'cvcWidget' types in createElements.
- Updated the Elements interface to remove create method overloads for specific element types.
- Changed the parameters of presentPaymentSheet and getCustomerSavedPaymentMethods methods to use Object type.
- Adjusted TypeScript configuration to allow builds even with errors.
- Updated yarn.lock to reflect changes in package dependencies.
- Updated podspec to include public header files for better accessibility.
- Modified autolinking.gradle to change the project name for dependency resolution.
- Introduced HyperModule as a native module for the New Architecture, facilitating communication between JS and native layers.
- Implemented HyperModule.mm to handle event emissions and method forwarding to Swift.
- Enhanced ApplePayView to support dynamic property updates.
- Refactored PaymentHandler to utilize the new HyperModule implementation.
- Removed legacy HyperModule.m and replaced it with a Swift implementation in HyperModuleImpl.swift.
- Added RNBridgeFactory to manage the internal React Native surface and support TurboModules.
- Updated package.json to reflect new project name and versioning.
- Adjusted repository URLs to point to the new GitHub location.
- Updated autolinking configuration to use the correct project name.
- Refactored ReactNativeHyperswitchModule to utilize a new method for bundle creation.
- Simplified event emission in HyperModule.mm by removing unnecessary widget events.
- Commented out legacy widget event handling in NativePaymentWidget and related classes.
- Removed bridge references in RNViewManager for a payment-sheet-only build.
- Updated package.json to reflect the new version and correct issue tracking URL.
…d for bundle creation.

- Simplified event emission in HyperModule.mm by removing unnecessary widget events.
- Commented out legacy widget event handling in NativePaymentWidget and related classes.
- Removed bridge references in RNViewManager for a payment-sheet-only build.
- Updated package.json to reflect the new version and correct issue tracking URL.
- Added 'requires_capture' status to the payment status mapping in PaymentSession.ts.
- Adjusted the order of fallback values for 'type' in mapNativeResponseToPaymentResult to prioritize 'parsed.type' over 'parsed.status'.
- Removed unused imports and commented out sdkAuthorization, hyperswitchConfig, and paymentSessionConfig in CVCElement and PaymentElement views for cleaner code.
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.

3 participants