Depreciated: Integrating Flutter Module + Replacing Payment Method with Flutter Screen #310
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
U can ignore commit:
ce4457b8311b38a194acfc7cc4d81ed1b03cc0ab
as it's about adding flutter xcframework to the project.This PR introduces the integration of the Flutter-based payment method selection UI into the native iOS SDK, replacing the existing payment method screen with a Flutter UI. It sets up communication between the iOS app and Flutter using a FlutterMethodChannel, allowing for seamless interaction between native iOS code and Flutter components.
NOTE:
• FlutterEngineManager: Manages the initialization and lifecycle of the Flutter engine, handling the presentation and dismissal of the Flutter payment method screen.
• FlutterChannelHandlerImpl: Handles communication between Flutter and iOS, processing the payment method result and passing data (token and source) back to the native app.
• Payment Method Screen Replacement: The existing payment method screen is now replaced with a Flutter-based UI, providing a smooth user experience for payment selection.
• Payment Result Handling: The payment result is decoded and processed, with the appropriate response being passed back to the app’s delegate for further action.