Skip to content

refactor: tokenization rendering#21230

Open
Matejk00 wants to merge 50 commits intodevelopfrom
feature/opf-tokenization-change
Open

refactor: tokenization rendering#21230
Matejk00 wants to merge 50 commits intodevelopfrom
feature/opf-tokenization-change

Conversation

@Matejk00
Copy link
Copy Markdown
Contributor

This PR adds a saved-cards toggle to OPF checkout that is fully driven by Spartacus outlets, keeping the bulk of UI logic in the tokenisation layer rather than in checkout. A standalone OpfTokenisationSavedCardsToggleComponent is registered on the OPF_CHECKOUT_BEFORE_PAYMENT_OPTIONS outlet (position BEFORE) and consumes a minimal outlet context from OpfCheckoutPaymentsComponent (selectedPaymentId, savedCardsId, disabled, and savedCardsSelected).

The existing OpfTokenisationCheckoutPaymentMethodComponent is also registered on the same outlet (position AFTER) and now reads the same outlet context to show the saved-cards list only when the toggle is selected. The checkout template was simplified to a single cxOutlet host with this context and no longer uses a hasSavedCards$ flag or local *ngIf around the list. Finally, enums, imports, and module wiring were cleaned so outlet IDs are defined in checkout root and all saved-cards–related outlet registrations live in the tokenisation root module.

@Matejk00 Matejk00 requested a review from a team as a code owner March 10, 2026 13:05
Base automatically changed from epic-tokenisation to develop April 3, 2026 15:54
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