Skip to content

[APAM-739] Add layout configuration for entire payment flow#69

Merged
weiping-awx merged 1 commit into
mainfrom
feat/APAM-739-layout
May 25, 2026
Merged

[APAM-739] Add layout configuration for entire payment flow#69
weiping-awx merged 1 commit into
mainfrom
feat/APAM-739-layout

Conversation

@weiping-awx

@weiping-awx weiping-awx commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds PaymentSheetConfiguration with a PaymentLayout enum (tab / accordion) to the Flutter plugin
  • Passes the layout through the method channel to native iOS (AWXUIContext.Configuration) and Android (PaymentElementConfiguration.PaymentSheet)
  • Updates the example app with separate buttons for tab and accordion layouts
  • Adds unit tests covering serialization and method channel argument passing

iOS:

Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-05-22.at.18.02.10.mov

Android:

Screen_recording_20260522_180258.webm

Non-breaking

The configuration parameter on presentEntirePaymentFlow is optional — all existing callers are unaffected and default to tab layout.

Test plan

  • flutter analyze — no issues
  • flutter test — all tests pass
  • Manual: tap presentEntirePaymentFlow (tab) → tab layout
  • Manual: tap presentEntirePaymentFlow (accordion) → accordion layout

🤖 Generated with Claude Code

…entFlow

Adds PaymentSheetConfiguration with a PaymentLayout enum (tab/accordion)
that maps to the native AWXUIContext.Configuration (iOS) and
PaymentElementConfiguration.PaymentSheet (Android). The parameter is
optional so all existing callers are unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread lib/airwallex_payment_flutter_method_channel.dart
@weiping-awx
weiping-awx merged commit a4d0541 into main May 25, 2026
4 checks passed
@weiping-awx
weiping-awx deleted the feat/APAM-739-layout branch May 25, 2026 10:15
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.

2 participants