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

AD-291: Upgrade to v6 #490

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,15 @@ 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)
.encryptedSecurityCode(cartData.getAdyenEncryptedSecurityCode())
.holderName(cartData.getAdyenCardHolder())));
}


if (cartData.getAdyenInstallments() != null) {
Installments installmentObj = new Installments();
installmentObj.setValue(cartData.getAdyenInstallments());
Expand Down
Loading