Skip to content

Commit 693698e

Browse files
committed
Update error message for single branded card
1 parent 84df4d5 commit 693698e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/cool-teachers-tease.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@adyen/adyen-web': patch
3+
---
4+
5+
update error message for single branded card

packages/lib/src/components/internal/SecuredFields/lib/CSF/partials/isConfigured.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export function isConfigured({ csfState, csfConfig, csfProps, csfCallbacks }: CS
2121
// If a recurring card
2222
if (csfState.numIframes === 1 && csfConfig.isCreditCardType) {
2323
if (csfState.type === 'card') {
24-
logger.error("ERROR: Payment method with a single secured field - but 'type' has not been set to a specific card brand");
24+
logger.error(
25+
"ERROR: Payment method with a single secured field - but 'brands' has not been set to an array containing the specific card brand"
26+
);
2527
return false;
2628
}
2729

0 commit comments

Comments
 (0)