Skip to content

fix(POM-521): (Card Tokenization) Support multiple view component instances - #333

Merged
vitalii-vanziak-cko merged 2 commits into
masterfrom
fix/POM-521/card-view-component-instances
Oct 1, 2025
Merged

fix(POM-521): (Card Tokenization) Support multiple view component instances#333
vitalii-vanziak-cko merged 2 commits into
masterfrom
fix/POM-521/card-view-component-instances

Conversation

@vitalii-vanziak-cko

Copy link
Copy Markdown
Collaborator

Description

Issue:
POCardTokenizationViewComponent uses shared POEventDispatcher, so when multiple component instances are created they use the same event dispatcher, which causes all component's delegates to be notified about events, such as processTokenizedCard().

Fix:

  • POCardTokenizationViewComponent creates its own instance of POEventDispatcher, so events will be sent only to its delegate.
  • Shared event dispatcher provided by POEventDispatcher.instance. Updated all usages.

Jira Issue

https://checkout.atlassian.net/browse/POM-521

@vitalii-vanziak-cko
vitalii-vanziak-cko merged commit 8ff09cd into master Oct 1, 2025
3 checks passed
@vitalii-vanziak-cko
vitalii-vanziak-cko deleted the fix/POM-521/card-view-component-instances branch October 1, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants