From 29aa5849d17f6ba6ceac5bce4dd1c1071b3d0c8f Mon Sep 17 00:00:00 2001 From: Joseluis Alias Date: Tue, 27 Jun 2023 11:10:24 +0200 Subject: [PATCH] ADYEN-406 - fix README.MD file --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0515549b3..2a1e51346 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ This plugin supports SAP Commerce (Hybris) versions 6.x The plugin is using following adyen libraries and API. -- [adyen-java-api-library](https://github.com/Adyen/adyen-java-api-library) (v14.0.0) -- [adyen-web](https://github.com/Adyen/adyen-web) (v4.3.1) -- [Adyen Checkout API](https://docs.adyen.com/api-explorer/) (v67) +- [adyen-java-api-library](https://github.com/Adyen/adyen-java-api-library) (v18.1.3) +- [adyen-web](https://github.com/Adyen/adyen-web) (v5.25.0) +- [Adyen Checkout API](https://docs.adyen.com/api-explorer/) (v69) ## Integration @@ -184,6 +184,15 @@ adyen.samesitecookie.handler.enabled=true For SAP Commerce versions 2005 and above, check how to use [SAP's SameSite Cookie Attribute Handler](https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/2005/en-US/bde41b6a42c541a08eb2a3b1993fb097.html). +## Amazon Pay configuration +To be able to complete payments in Amazon Pay, you must add your Amazon Pay private key to the following folder /adyen-hybris/adyenv6core/resources/certificates, and once done, set the correct PEM file name on /adyen-hybris/adyenv6core/src/com/adyen/v6/DefaultAdyenAmazonPayIntegratorService.java in the following line: +``` +payConfiguration = new PayConfiguration() + .setPublicKeyId(amazonpayPublicKey) + .setRegion(Region.valueOf(amazonpayRegion.getCode())) +---> .setPrivateKey(new String(Files.readAllBytes(ResourceUtils.getFile("classpath:certificates/amazonpay/YourCertificateName.pem").toPath())).toCharArray()) +``` + ## Documentation https://github.com/Adyen/adyen-hybris/wiki