diff --git a/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen.checkout.js b/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen.checkout.js index cd51ee9e..64bb6ae0 100644 --- a/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen.checkout.js +++ b/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen.checkout.js @@ -66,7 +66,6 @@ class AdyenCheckoutHelper { }, } }; - console.log("Execution of initiateCheckout: ", this.i++); this.checkout = await AdyenWeb.AdyenCheckout(configuration); this.factory = new PaymentComponentFactory(this.checkout, this); this.factory.createFromConfigs(paymentMethodConfigs); diff --git a/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen_component_factory.js b/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen_component_factory.js index fb39508a..3882490b 100644 --- a/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen_component_factory.js +++ b/adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen_component_factory.js @@ -52,7 +52,7 @@ class PaymentComponentFactory { const {allowedCards, showRememberDetails, cardHolderNameRequired,merchantDisplayName,shopperEmail} = params; const copyCardBrand= (event) => { - context.selectedCardBrand = event.brand; + this.helper.selectedCardBrand = event.brand; } this.helper.card = new AdyenWeb.Card(this.checkout, { diff --git a/adyenv6core/src/com/adyen/v6/factory/AdyenRequestFactory.java b/adyenv6core/src/com/adyen/v6/factory/AdyenRequestFactory.java index 37571511..875470ce 100644 --- a/adyenv6core/src/com/adyen/v6/factory/AdyenRequestFactory.java +++ b/adyenv6core/src/com/adyen/v6/factory/AdyenRequestFactory.java @@ -292,6 +292,7 @@ protected void updatePaymentRequestForCC(final PaymentRequest paymentsRequest, f if (StringUtils.isNotEmpty(encryptedCardNumber) && StringUtils.isNotEmpty(encryptedExpiryMonth) && StringUtils.isNotEmpty(encryptedExpiryYear)) { paymentsRequest.setPaymentMethod(new CheckoutPaymentMethod(new CardDetails() + .type(CardDetails.TypeEnum.CARD) .encryptedCardNumber(encryptedCardNumber) .encryptedExpiryMonth(encryptedExpiryMonth) .encryptedExpiryYear(encryptedExpiryYear) @@ -299,6 +300,7 @@ protected void updatePaymentRequestForCC(final PaymentRequest paymentsRequest, f .holderName(cartData.getAdyenCardHolder()))); } + if (cartData.getAdyenInstallments() != null) { Installments installmentObj = new Installments(); installmentObj.setValue(cartData.getAdyenInstallments());