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/using cvc policy #707

Merged
merged 37 commits into from
Feb 1, 2021
Merged

Feature/using cvc policy #707

merged 37 commits into from
Feb 1, 2021

Conversation

sponglord
Copy link
Contributor

@sponglord sponglord commented Jan 29, 2021

Summary

  • In light of the switch to the new v2 /binLookup and it's use of a cvcPolicy - refactor Card & SecuredField code to drop the separate cvcRequired & hideCVC properties and instead use a cvcPolicy prop which can cover all scenarios.
  • Also implement a new procedure for CardInput to trigger validation - validating "every time there's a change in state" rather than "validating every time we set the state"
  • Upped securedFields version to v3.3.0

Tested scenarios

All tests, unit & e2e, run and pass

…ans for certain values (e.g. enableLuhnCheck)
…olicy' to use this to register a brand change
# Conflicts:
#	packages/e2e/tests/cards/branding/branding.test.js
#	packages/lib/src/components/Card/components/CardInput/CardInput.tsx
#	packages/lib/src/components/Card/components/CardInput/handlers.ts
#	packages/lib/src/components/Card/components/CardInput/processBinLookup.ts
#	packages/lib/src/components/Card/triggerBinLookUp.ts
#	packages/lib/src/components/Card/types.ts
#	packages/lib/src/components/internal/SecuredFields/SecuredFieldsProvider.test.tsx
#	packages/lib/src/components/internal/SecuredFields/SecuredFieldsProvider.ts
#	packages/lib/src/components/internal/SecuredFields/SecuredFieldsProviderHandlers.ts
#	packages/lib/src/components/internal/SecuredFields/lib/core/handleValidation.ts
#	packages/lib/src/components/internal/SecuredFields/lib/core/utils/handleBrandFromBinLookup.ts
#	packages/lib/src/components/internal/SecuredFields/lib/types.ts
@github-actions
Copy link
Contributor

github-actions bot commented Jan 29, 2021

Size Change: +196 B (0%)

Total Size: 146 kB

Filename Size Change
packages/lib/dist/adyen.js 146 kB +196 B (0%)

compressed-size-action

@lgtm-com
Copy link

lgtm-com bot commented Jan 29, 2021

This pull request introduces 1 alert when merging a725f7d into 1a87f27 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@sonarcloud
Copy link

sonarcloud bot commented Feb 1, 2021

Kudos, SonarCloud 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 7cf63b6 into master Feb 1, 2021
@sponglord sponglord deleted the feature/using_cvcPolicy branch February 1, 2021 14:47
@marcperez marcperez mentioned this pull request Feb 1, 2021
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