Skip to content

Commit 0511f1a

Browse files
author
Reinhard Hampl
committed
Fix missing CC form in checkout
1 parent 338c34c commit 0511f1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

view/frontend/templates/payment/model/adyen-payment-method.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ $billingAddress = $block->getQuoteBillingAddress();
316316
countryCode: formattedShippingAddress.country_id ? formattedShippingAddress.country_id : formattedBillingAddress.country_id
317317
};
318318

319-
if (!!paymentMethodsExtraInfo[paymentMethod.type].configuration) {
319+
if (paymentMethodsExtraInfo &&
320+
paymentMethodsExtraInfo[paymentMethod.type] &&
321+
paymentMethodsExtraInfo[paymentMethod.type].configuration) {
320322
return Object.assign(configuration, paymentMethodsExtraInfo[paymentMethod.type].configuration)
321323
} else {
322324
return configuration;

0 commit comments

Comments
 (0)