-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/v5 card adds analytics config data (#2724)
* Card passes this.props to submitAnalytics * Added util that analyticsPreProcessor.ts can call to generate configData for the (Custom)Card comp * Passing on configData to endpoint * Fixed accidental overwrite of analytics "type" value in rendered event * Added unit test for billingAddressMode * Fix for edge case where both addressLookup and billingAddressMode:'partial' are set * Adding more configData values, with corresponding unit tests * Added ConfigData type * Adding 5 more props & tests * Adding another 5 props & tests * Playground Card has all config options listed * minimumExpiryDate is sent as a boolean * default value of showInstallmentAmounts is null, but it is alway represented in configData as a boolean * billingAddressMode value is always passed on (rather than being forced to "none") * billingAddressAllowedCountries has default value in CardInput.defaultProps * isStylesConfigured ==> hasStylesConfigured. booleans added to show if callback functions have been defined * Resolved some types. All expected configData for the Card component is now ready to be sent in * Updated and added to unit tests * Clarifying types * allowing configData to be sent to endpoint. Adding props related to srPanel & riskModule * Skipping tests until endpoint is ready * Adding changeset file * Updating e2e test to reflect third party changes to markup * Limiting configData length until endpoint is ready * Adjusting unit tests to allow for presence of configData * Prefixing booleans, indicating presence of callbacks, with "has" * Card component merges CardInput's default props into its own * Cleaner way to detect if default callbacks have been overridden * Card shouldn't merge all of cardInputs default props * Also send configData for Bcmc. Minor reformatting
- Loading branch information
Showing
12 changed files
with
1,114 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@adyen/adyen-web": minor | ||
--- | ||
|
||
Card component adds configData for analytics (added to "rendered" Info Event) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.