Skip to content

[Mobile Payments] Migrate CardPresentModals to SwiftUI #8332

@iamgabrielma

Description

@iamgabrielma

At the moment, the different CardPresent modal views used through the card reader connection and payment flows are populated on runtime with different configurations and contents.

This presents some challenges, as modifying one of them generally requires multiple parts being affected, for example the usage of UIButton configuration as result of some UIButton properties deprecations with iOS15. This also causes that we use some components incorrectly in order to reuse the different Views, which derives in further problems down the road.

Migrating these to SwiftUI and setting their content up separately based on state, as well as using the UIButton.configuration API to handle state updates could be a good first step to make these simpler and easier to modify.

Related tasks:

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: mobile paymentsRelated to mobile payments / card present payments / Woo Payments.type: enhancementA request for an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions