Skip to content

Commit

Permalink
AD-291: Upgrade to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
kpieloch committed Dec 12, 2024
1 parent a515271 commit 30e3f51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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
2 changes: 2 additions & 0 deletions adyenv6core/src/com/adyen/v6/factory/AdyenRequestFactory.java
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

0 comments on commit 30e3f51

Please sign in to comment.