Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/excluding brands from UI #1754

Merged
merged 11 commits into from
Sep 23, 2022
Merged

Conversation

sponglord
Copy link
Contributor

@sponglord sponglord commented Sep 21, 2022

Summary

The ticket states: "Remove US debit related payment method logos on drop-in" - basically some US debit cards should never appear in the UI or be revealed to the shopper.

Apparently this can't be dealt with in the b/e since merchants still want to see these brands in the /paymentMethods & /binLookup responses.

So... we have a hard-coded* array of brands that need to be excluded from the UI, meaning:

  • they shouldn't appear in the Payment method list in the Dropin i.e the brand icons displayed for the Credit card PM
  • they shouldn't appear under the PAN when the Credit card component is open
  • although these cards are all dual branded, when the number is entered, they should appear as a "single branded" card
  • however this "single branded" card should not set a brand in the paymentMethod data

Tested scenarios

New unit & e2e tests added to test the four scenarios, above
All tests pass

Fixed issue: FOC-61989

Note:
*this is currently a hard-coded list of 4 card brands and is expected to stay this way
However if this number was to grow in the future we should consider that it should be set elsewhere - perhaps as a property in the configuration object that can be returned by the b/e on the Credit card PM object

@github-actions
Copy link
Contributor

github-actions bot commented Sep 21, 2022

Size Change: +939 B (0%)

Total Size: 847 kB

Filename Size Change
packages/lib/dist/adyen.js 228 kB +262 B (0%)
packages/lib/dist/cjs/index.js 192 kB +266 B (0%)
packages/lib/dist/es.modern/index.js 102 kB +160 B (0%)
packages/lib/dist/es/index.js 120 kB +251 B (0%)
ℹ️ View Unchanged
Filename Size
packages/lib/dist/es.modern/ar.js 4.63 kB
packages/lib/dist/es.modern/cs-CZ.js 4.16 kB
packages/lib/dist/es.modern/da-DK.js 3.78 kB
packages/lib/dist/es.modern/de-DE.js 4.07 kB
packages/lib/dist/es.modern/el-GR.js 5.17 kB
packages/lib/dist/es.modern/es-ES.js 3.82 kB
packages/lib/dist/es.modern/fi-FI.js 3.86 kB
packages/lib/dist/es.modern/fr-FR.js 4.02 kB
packages/lib/dist/es.modern/hr-HR.js 3.93 kB
packages/lib/dist/es.modern/hu-HU.js 4.13 kB
packages/lib/dist/es.modern/it-IT.js 3.82 kB
packages/lib/dist/es.modern/ja-JP.js 4.58 kB
packages/lib/dist/es.modern/ko-KR.js 4.19 kB
packages/lib/dist/es.modern/nl-NL.js 3.85 kB
packages/lib/dist/es.modern/no-NO.js 3.77 kB
packages/lib/dist/es.modern/pl-PL.js 4.21 kB
packages/lib/dist/es.modern/pt-BR.js 3.83 kB
packages/lib/dist/es.modern/pt-PT.js 3.98 kB
packages/lib/dist/es.modern/ro-RO.js 4.06 kB
packages/lib/dist/es.modern/ru-RU.js 4.87 kB
packages/lib/dist/es.modern/sk-SK.js 4.2 kB
packages/lib/dist/es.modern/sl-SI.js 3.85 kB
packages/lib/dist/es.modern/sv-SE.js 3.79 kB
packages/lib/dist/es.modern/zh-CN.js 4.1 kB
packages/lib/dist/es.modern/zh-TW.js 4.25 kB
packages/lib/dist/es/ar.js 4.63 kB
packages/lib/dist/es/cs-CZ.js 4.16 kB
packages/lib/dist/es/da-DK.js 3.78 kB
packages/lib/dist/es/de-DE.js 4.07 kB
packages/lib/dist/es/el-GR.js 5.17 kB
packages/lib/dist/es/es-ES.js 3.82 kB
packages/lib/dist/es/fi-FI.js 3.86 kB
packages/lib/dist/es/fr-FR.js 4.02 kB
packages/lib/dist/es/hr-HR.js 3.93 kB
packages/lib/dist/es/hu-HU.js 4.13 kB
packages/lib/dist/es/it-IT.js 3.82 kB
packages/lib/dist/es/ja-JP.js 4.58 kB
packages/lib/dist/es/ko-KR.js 4.19 kB
packages/lib/dist/es/nl-NL.js 3.85 kB
packages/lib/dist/es/no-NO.js 3.77 kB
packages/lib/dist/es/pl-PL.js 4.21 kB
packages/lib/dist/es/pt-BR.js 3.83 kB
packages/lib/dist/es/pt-PT.js 3.98 kB
packages/lib/dist/es/ro-RO.js 4.06 kB
packages/lib/dist/es/ru-RU.js 4.87 kB
packages/lib/dist/es/sk-SK.js 4.2 kB
packages/lib/dist/es/sl-SI.js 3.85 kB
packages/lib/dist/es/sv-SE.js 3.79 kB
packages/lib/dist/es/zh-CN.js 4.1 kB
packages/lib/dist/es/zh-TW.js 4.25 kB

compressed-size-action

@sonarcloud
Copy link

sonarcloud bot commented Sep 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sponglord sponglord merged commit ea024de into master Sep 23, 2022
@sponglord sponglord deleted the feature/excluding_brands_from_ui branch September 23, 2022 12:25
@ribeiroguilherme ribeiroguilherme mentioned this pull request Sep 26, 2022
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.

None yet

2 participants