diff --git a/Block/Adminhtml/System/Config/AutoKeyExchangeAdmin.php b/Block/Adminhtml/System/Config/AutoKeyExchangeAdmin.php index d2ab2f9c4..11d14d10b 100644 --- a/Block/Adminhtml/System/Config/AutoKeyExchangeAdmin.php +++ b/Block/Adminhtml/System/Config/AutoKeyExchangeAdmin.php @@ -58,6 +58,8 @@ public function getRegion() */ public function getCurrency() { - return $this->autokeyexchange->getCurrency(); + $currency = $this->autokeyexchange->getCurrency(); + if($currency) $currency = strtoupper($currency); + return $currency; } } diff --git a/Block/Config.php b/Block/Config.php index ac1908dc4..534393e68 100755 --- a/Block/Config.php +++ b/Block/Config.php @@ -62,7 +62,8 @@ public function getConfig() 'is_pay_only' => $this->amazonHelper->isPayOnly(), 'is_lwa_enabled' => $this->isLwaEnabled(), 'is_guest_checkout_enabled' => $this->amazonConfig->isGuestCheckoutEnabled(), - 'has_restricted_products' => $this->amazonHelper->hasRestrictedProducts() + 'has_restricted_products' => $this->amazonHelper->hasRestrictedProducts(), + 'is_multicurrency_enabled' => $this->amazonConfig->multiCurrencyEnabled() ]; return $config; diff --git a/CHANGELOG.md b/CHANGELOG.md index 39b65d89a..1e8b8ccfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 5.14.0 +* Added configurable options for checkout and signin cancel return urls +* Added estimated order amount to the button payload +* Fixed issue with ExceptionLogger using a removed method +* Fixed issue with customer names having characters that Magento doesn’t allow +* Fixed issue with APB and virtual orders when taxes are applied +* Improved compatibility with b2b modules and address display +* Updated config to not show Auto Key Exchange button for JPY as it is not supported + ## 5.13.1 * Fixed issue with invalid array reference if a transaction doesn’t have a charge permission * Fixed issue with GraphQL config query supporting omitPayloads diff --git a/Logger/ExceptionLogger.php b/Logger/ExceptionLogger.php index 0b764914f..c148706f3 100755 --- a/Logger/ExceptionLogger.php +++ b/Logger/ExceptionLogger.php @@ -28,6 +28,6 @@ public function __construct(LoggerInterface $logger) public function logException(\Exception $e) { $message = (string) $e; - $this->logger->addError($message); + $this->logger->error($message); } } diff --git a/Model/Adapter/AmazonPayAdapter.php b/Model/Adapter/AmazonPayAdapter.php index ad89c959a..d92953752 100755 --- a/Model/Adapter/AmazonPayAdapter.php +++ b/Model/Adapter/AmazonPayAdapter.php @@ -510,7 +510,7 @@ public function generateLoginButtonPayload() { $payload = [ 'signInReturnUrl' => $this->getSignInUrl(), - 'signInCancelUrl' => $this->getCancelUrl(), + 'signInCancelUrl' => $this->getSignInCancelUrl(), 'storeId' => $this->amazonConfig->getClientId(), 'signInScopes' => ['name', 'email'], ]; @@ -528,7 +528,7 @@ public function generateCheckoutButtonPayload() $payload = [ 'webCheckoutDetails' => [ 'checkoutReviewReturnUrl' => $this->amazonConfig->getCheckoutReviewReturnUrl(), - 'checkoutCancelUrl' => $this->getCancelUrl(), + 'checkoutCancelUrl' => $this->getCheckoutCancelUrl(), ], 'storeId' => $this->amazonConfig->getClientId(), 'scopes' => ['name', 'email', 'phoneNumber', 'billingAddress'], @@ -551,7 +551,7 @@ public function generatePayNowButtonPayload(Quote $quote, $paymentIntent = Payme 'webCheckoutDetails' => [ 'checkoutMode' => 'ProcessOrder', 'checkoutResultReturnUrl' => $this->amazonConfig->getPayNowResultUrl(), - 'checkoutCancelUrl' => $this->getCancelUrl(), + 'checkoutCancelUrl' => $this->getCheckoutCancelUrl(), ], 'storeId' => $this->amazonConfig->getClientId(), 'scopes' => ['name', 'email', 'phoneNumber', 'billingAddress'], @@ -608,7 +608,27 @@ public function signButton($payload, $storeId = null) return $this->clientFactory->create($storeId)->generateButtonSignature($payload); } - protected function getCancelUrl() + protected function getCheckoutCancelUrl() + { + $checkoutCancelUrl = $this->amazonConfig->getCheckoutCancelUrl(); + if (empty($checkoutCancelUrl)) { + return $this->getDefaultCancelUrl(); + } + + return $this->url->getUrl($checkoutCancelUrl); + } + + protected function getSignInCancelUrl() + { + $signInCancelUrl = $this->amazonConfig->getSignInCancelUrl(); + if (empty($signInCancelUrl)) { + return $this->getDefaultCancelUrl(); + } + + return $this->url->getUrl($signInCancelUrl); + } + + protected function getDefaultCancelUrl() { $referer = $this->redirect->getRefererUrl(); if ($referer == $this->url->getUrl('checkout')) { diff --git a/Model/AmazonConfig.php b/Model/AmazonConfig.php index a725f3826..c508e758e 100755 --- a/Model/AmazonConfig.php +++ b/Model/AmazonConfig.php @@ -614,6 +614,34 @@ public function getPayNowResultUrl($scope = ScopeInterface::SCOPE_STORE, $scopeC return $this->getCheckoutResultReturnUrl($scope, $scopeCode); } + /** + * @return string|null + */ + public function getCheckoutCancelUrl($scope = ScopeInterface::SCOPE_STORE, $scopeCode = null) + { + $result = $this->scopeConfig->getValue( + 'payment/amazon_payment_v2/checkout_cancel_url', + $scope, + $scopeCode + ); + + return $result; + } + + /** + * @return string|null + */ + public function getSignInCancelUrl($scope = ScopeInterface::SCOPE_STORE, $scopeCode = null) + { + $result = $this->scopeConfig->getValue( + 'payment/amazon_payment_v2/signin_cancel_url', + $scope, + $scopeCode + ); + + return $result; + } + /** * @param string $scope * @param mixed $scopeCode diff --git a/Model/CheckoutSessionManagement.php b/Model/CheckoutSessionManagement.php index 005d9646d..598361094 100755 --- a/Model/CheckoutSessionManagement.php +++ b/Model/CheckoutSessionManagement.php @@ -738,19 +738,6 @@ public function completeCheckoutSession($amazonSessionId, $cartId = null) } if ($amazonSession['productType'] == 'PayOnly') { - $addressData = $amazonSession['billingAddress']; - - $addressData['state'] = $addressData['stateOrRegion']; - $addressData['phone'] = $addressData['phoneNumber']; - - $address = array_combine( - array_map('ucfirst', array_keys($addressData)), - array_values($addressData) - ); - $amazonAddress = $this->amazonAddressFactory->create(['address' => $address]); - - $customerAddress = $this->addressHelper->convertToMagentoEntity($amazonAddress); - $quote->getBillingAddress()->importCustomerAddressData($customerAddress); if (empty($quote->getCustomerEmail())) { $quote->setCustomerEmail($amazonSession['buyer']['email']); } diff --git a/Model/CustomerLinkManagement.php b/Model/CustomerLinkManagement.php index b68afbe10..b1fae289d 100644 --- a/Model/CustomerLinkManagement.php +++ b/Model/CustomerLinkManagement.php @@ -95,9 +95,10 @@ public function getByCustomerId($customerId) public function create(AmazonCustomerInterface $amazonCustomer) { $customerData = $this->customerDataFactory->create(); + $sanitizedNames = $this->getSanitizedNameData($amazonCustomer); - $customerData->setFirstname($amazonCustomer->getFirstName()); - $customerData->setLastname($amazonCustomer->getLastName()); + $customerData->setFirstname($sanitizedNames['first_name']); + $customerData->setLastname($sanitizedNames['last_name']); $customerData->setEmail($amazonCustomer->getEmail()); $password = $this->random->getRandomString(64); @@ -120,4 +121,18 @@ public function updateLink($customerId, $amazonId) $this->customerLinkRepository->save($customerLink); } + + /** + * @param AmazonCustomerInterface $customer + * @return array + */ + private function getSanitizedNameData($customer) + { + $pattern = '/([^\p{L}\p{M}\,\-\_\.\'\s\d]){1,255}+/u'; + + return [ + 'first_name' => trim(preg_replace($pattern, '', htmlspecialchars_decode($customer->getFirstname()))), + 'last_name' => trim(preg_replace($pattern, '', htmlspecialchars_decode($customer->getLastname()))) + ]; + } } diff --git a/README.md b/README.md index 70e8b2a03..1abf9f8ce 100755 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ The following table provides an overview on which Git branch is compatible to wh Magento Version | Github Branch | Latest release ---|---|--- 2.2.6 - 2.2.11 (EOL) | [V2checkout-1.2.x](https://github.com/amzn/amazon-payments-magento-2-plugin/tree/V2checkout-1.2.x) | 1.20.0 (EOL) -2.3.0 - 2.4.x | [master](https://github.com/amzn/amazon-payments-magento-2-plugin/tree/master) | 5.13.1 +2.3.0 - 2.4.x | [master](https://github.com/amzn/amazon-payments-magento-2-plugin/tree/master) | 5.14.0 ## Release Notes See [CHANGELOG.md](/CHANGELOG.md) diff --git a/composer.json b/composer.json index a832e99da..c0748464f 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "amzn/amazon-pay-magento-2-module", "description": "Official Magento2 Plugin to integrate with Amazon Pay", "type": "magento2-module", - "version": "5.13.1", + "version": "5.14.0", "license": [ "Apache-2.0" ], diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index b0c52027e..263ae68ae 100755 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -246,6 +246,17 @@ Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Magento will redirect to this URL after completing the checkout session. Do not use a leading slash.]]>
payment/amazon_payment_v2/checkout_result_url + + + + Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks "Cancel Amazon Pay checkout and return to [merchant site]" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).]]>
+ payment/amazon_payment_v2/checkout_cancel_url +
+ + + Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks "Cancel" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).]]>
+ payment/amazon_payment_v2/signin_cancel_url +
diff --git a/i18n/de_AT.csv b/i18n/de_AT.csv index e05abda2e..2847344df 100644 --- a/i18n/de_AT.csv +++ b/i18n/de_AT.csv @@ -189,3 +189,7 @@ "Only change this value if required. Improper modifications can break the integration. After the order is complete, your customer will be redirected to this URL. Don't enter a leading slash.","Ändern Sie diesen Wert nur bei Bedarf. Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Nachdem die Bestellung abgeschlossen ist, werden Ihre Kunden zu dieser URL weitergeleitet. Tragen Sie keinen vorangestellten Schrägstrich ein." "Refund declined for order #%1","Erstattung für Bestellung #%1 wurde abgelehnt" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Hinweis: Amazon Pay unterstützt die Fremdwährungsfunktion nur für die Zahlungsregionen Vereinigtes Königreich und Euroraum. Unterstützte Währungen: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." +"Amazon Checkout cancel URL Path","URL-Pfad bei Abbruch des Amazon Pay Checkout (nur für die Regionen EU/UK)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Ändern Sie diesen Wert nur bei Bedarf.
Ihre Kunden werden zu dieser URL weitergeleitet, wenn sie während des Bezahlvorgangs auf „Amazon Pay-Bezahlvorgang abbrechen und zu [Händlername] zurückkehren“ klicken. Standardmäßig werden Ihre Kunden auf die Warenkorbseite geleitet." +"Amazon Sign In cancel URL Path","URL-Pfad bei Abbruch der Anmeldung mit Amazon (nur für die Regionen EU/UK)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Ändern Sie diesen Wert nur bei Bedarf.
Ihre Kunden werden zu dieser URL weitergeleitet, wenn sie auf der Seite „Mit Amazon anmelden“ auf „Abbrechen“ klicken. Tragen Sie keinen vorangestellten Schrägstrich ein. Standardmäßig werden Ihre Kunden zur vorherigen Seite zurückgeleitet." diff --git a/i18n/de_CH.csv b/i18n/de_CH.csv index e05abda2e..2847344df 100644 --- a/i18n/de_CH.csv +++ b/i18n/de_CH.csv @@ -189,3 +189,7 @@ "Only change this value if required. Improper modifications can break the integration. After the order is complete, your customer will be redirected to this URL. Don't enter a leading slash.","Ändern Sie diesen Wert nur bei Bedarf. Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Nachdem die Bestellung abgeschlossen ist, werden Ihre Kunden zu dieser URL weitergeleitet. Tragen Sie keinen vorangestellten Schrägstrich ein." "Refund declined for order #%1","Erstattung für Bestellung #%1 wurde abgelehnt" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Hinweis: Amazon Pay unterstützt die Fremdwährungsfunktion nur für die Zahlungsregionen Vereinigtes Königreich und Euroraum. Unterstützte Währungen: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." +"Amazon Checkout cancel URL Path","URL-Pfad bei Abbruch des Amazon Pay Checkout (nur für die Regionen EU/UK)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Ändern Sie diesen Wert nur bei Bedarf.
Ihre Kunden werden zu dieser URL weitergeleitet, wenn sie während des Bezahlvorgangs auf „Amazon Pay-Bezahlvorgang abbrechen und zu [Händlername] zurückkehren“ klicken. Standardmäßig werden Ihre Kunden auf die Warenkorbseite geleitet." +"Amazon Sign In cancel URL Path","URL-Pfad bei Abbruch der Anmeldung mit Amazon (nur für die Regionen EU/UK)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Ändern Sie diesen Wert nur bei Bedarf.
Ihre Kunden werden zu dieser URL weitergeleitet, wenn sie auf der Seite „Mit Amazon anmelden“ auf „Abbrechen“ klicken. Tragen Sie keinen vorangestellten Schrägstrich ein. Standardmäßig werden Ihre Kunden zur vorherigen Seite zurückgeleitet." diff --git a/i18n/de_DE.csv b/i18n/de_DE.csv index e05abda2e..2847344df 100644 --- a/i18n/de_DE.csv +++ b/i18n/de_DE.csv @@ -189,3 +189,7 @@ "Only change this value if required. Improper modifications can break the integration. After the order is complete, your customer will be redirected to this URL. Don't enter a leading slash.","Ändern Sie diesen Wert nur bei Bedarf. Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Nachdem die Bestellung abgeschlossen ist, werden Ihre Kunden zu dieser URL weitergeleitet. Tragen Sie keinen vorangestellten Schrägstrich ein." "Refund declined for order #%1","Erstattung für Bestellung #%1 wurde abgelehnt" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Hinweis: Amazon Pay unterstützt die Fremdwährungsfunktion nur für die Zahlungsregionen Vereinigtes Königreich und Euroraum. Unterstützte Währungen: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." +"Amazon Checkout cancel URL Path","URL-Pfad bei Abbruch des Amazon Pay Checkout (nur für die Regionen EU/UK)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Ändern Sie diesen Wert nur bei Bedarf.
Ihre Kunden werden zu dieser URL weitergeleitet, wenn sie während des Bezahlvorgangs auf „Amazon Pay-Bezahlvorgang abbrechen und zu [Händlername] zurückkehren“ klicken. Standardmäßig werden Ihre Kunden auf die Warenkorbseite geleitet." +"Amazon Sign In cancel URL Path","URL-Pfad bei Abbruch der Anmeldung mit Amazon (nur für die Regionen EU/UK)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Unsachgemäße Änderungen können zu einer fehlerhaften Integration führen. Ändern Sie diesen Wert nur bei Bedarf.
Ihre Kunden werden zu dieser URL weitergeleitet, wenn sie auf der Seite „Mit Amazon anmelden“ auf „Abbrechen“ klicken. Tragen Sie keinen vorangestellten Schrägstrich ein. Standardmäßig werden Ihre Kunden zur vorherigen Seite zurückgeleitet." diff --git a/i18n/es_AR.csv b/i18n/es_AR.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_AR.csv +++ b/i18n/es_AR.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_CL.csv b/i18n/es_CL.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_CL.csv +++ b/i18n/es_CL.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_CO.csv b/i18n/es_CO.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_CO.csv +++ b/i18n/es_CO.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_CR.csv b/i18n/es_CR.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_CR.csv +++ b/i18n/es_CR.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_ES.csv b/i18n/es_ES.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_ES.csv +++ b/i18n/es_ES.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_MX.csv b/i18n/es_MX.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_MX.csv +++ b/i18n/es_MX.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_PA.csv b/i18n/es_PA.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_PA.csv +++ b/i18n/es_PA.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_PE.csv b/i18n/es_PE.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_PE.csv +++ b/i18n/es_PE.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/es_VE.csv b/i18n/es_VE.csv index 5ca8e41f5..bfd8c6756 100644 --- a/i18n/es_VE.csv +++ b/i18n/es_VE.csv @@ -194,3 +194,7 @@ Nota: El botón de Amazon Pay solo podrán verlo los clientes con las direccione "Refund declined for order #%1","Reembolso del pedido n.º %1 rechazado" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: Amazon Pay solo admite la funcionalidad multidivisas en las regiones de pago del Reino Unido y la Eurozona. Divisas admitidas: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." "You'll be connecting/registering a %1 account based on your display currency of your store scope. For more information, see Amazon Pay for Magento 2.","Vas a registrar o a conectarte a una cuenta de %1. basada en la divisa de visualización del ámbito de tu tienda. Para obtener más información, consulta Amazon Pay para Magento 2" +"Amazon Checkout cancel URL Path","Ruta de URL de cancelación de pago de Amazon Pay (solo regiones de Reino Unido/UE)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se dirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar pago de Amazon Pay y volver a [nombre del vendedor]” durante el proceso de pago. De forma predeterminada, tus clientes volverán a la página previa al pago." +"Amazon Sign In cancel URL Path","Ruta de URL de cancelación de inicio de sesión de Amazon (solo regiones de Reino Unido/UE)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Las modificaciones inadecuadas pueden interrumpir la integración. Solo debes cambiar este valor si es necesario.
Se redirigirá a tus clientes a esta URL cuando hagan clic en “Cancelar” en la página de Iniciar sesión con Amazon. No incluyas una barra diagonal al principio. De forma predeterminada, los clientes volverán a la página anterior." diff --git a/i18n/fr_CA.csv b/i18n/fr_CA.csv index 21a7673e5..768ac7599 100644 --- a/i18n/fr_CA.csv +++ b/i18n/fr_CA.csv @@ -191,3 +191,7 @@ "In order to enable automatic account configuration using Amazon's secure key exchange, please turn on secure admin pages in General > Web > Use secure URLs in Admin.","Pour faciliter la configuration et le transfert automatique de vos clés et identifiants de votre compte marchand Amazon Payments vers Magento, activez Use Secure URLs in Admin (Utiliser des URL sécurisées dans Admin) sous Général > Web > Base URLs (secure) (URL de base sécurisées)." "Reset configuration","Réinitialiser la configuration" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Remarque: Amazon Pay prend uniquement en charge la fonction multidevise pour les régions de paiement Royaume-Uni et Euro. Devises compatibles: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." +"Amazon Checkout cancel URL Path","Chemin de l'URL d'annulation de paiement Amazon Pay (régions UE/Royaume-Uni uniquement)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Des modifications incorrectes peuvent casser l'intégration. Modifiez cette valeur uniquement si nécessaire.
Vos clients seront redirigés vers cette URL lorsqu'ils cliqueront sur « Annuler le paiement Amazon Pay et retourner à [nom du marchand] » lors du paiement. Par défaut, vos clients seront renvoyés vers votre page de pré-paiement." +"Amazon Sign In cancel URL Path","Chemin de l'URL d'annulation de connexion Amazon (régions UE/Royaume-Uni uniquement)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Des modifications incorrectes peuvent casser l'intégration. Modifiez cette valeur uniquement si nécessaire.
Vos clients seront redirigés vers cette URL lorsqu'ils cliqueront sur « Annuler » sur la page Se connecter avec Amazon. N'entrez pas de barre oblique. Par défaut, vos clients seront renvoyés à la page précédente." diff --git a/i18n/fr_FR.csv b/i18n/fr_FR.csv index 21a7673e5..768ac7599 100644 --- a/i18n/fr_FR.csv +++ b/i18n/fr_FR.csv @@ -191,3 +191,7 @@ "In order to enable automatic account configuration using Amazon's secure key exchange, please turn on secure admin pages in General > Web > Use secure URLs in Admin.","Pour faciliter la configuration et le transfert automatique de vos clés et identifiants de votre compte marchand Amazon Payments vers Magento, activez Use Secure URLs in Admin (Utiliser des URL sécurisées dans Admin) sous Général > Web > Base URLs (secure) (URL de base sécurisées)." "Reset configuration","Réinitialiser la configuration" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Remarque: Amazon Pay prend uniquement en charge la fonction multidevise pour les régions de paiement Royaume-Uni et Euro. Devises compatibles: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD." +"Amazon Checkout cancel URL Path","Chemin de l'URL d'annulation de paiement Amazon Pay (régions UE/Royaume-Uni uniquement)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Des modifications incorrectes peuvent casser l'intégration. Modifiez cette valeur uniquement si nécessaire.
Vos clients seront redirigés vers cette URL lorsqu'ils cliqueront sur « Annuler le paiement Amazon Pay et retourner à [nom du marchand] » lors du paiement. Par défaut, vos clients seront renvoyés vers votre page de pré-paiement." +"Amazon Sign In cancel URL Path","Chemin de l'URL d'annulation de connexion Amazon (régions UE/Royaume-Uni uniquement)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Des modifications incorrectes peuvent casser l'intégration. Modifiez cette valeur uniquement si nécessaire.
Vos clients seront redirigés vers cette URL lorsqu'ils cliqueront sur « Annuler » sur la page Se connecter avec Amazon. N'entrez pas de barre oblique. Par défaut, vos clients seront renvoyés à la page précédente." diff --git a/i18n/it_CH.csv b/i18n/it_CH.csv index a7061a2d3..5f9048952 100644 --- a/i18n/it_CH.csv +++ b/i18n/it_CH.csv @@ -190,3 +190,7 @@ "Only change this value if required. Improper modifications can break the integration. After the order is complete, your customer will be redirected to this URL. Don't enter a leading slash.","Modifica questo valore solo se necessario. Le modifiche improprie possono danneggiare l'integrazione. Una volta completato l'ordine, il cliente verrà reindirizzato a questo URL. Non inserire una barra iniziale." "Refund declined for order #%1","Rimborso rifiutato per l'ordine #%1" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: se abilitati, gli indirizzi delle caselle postali negli Stati Uniti, Canada, Regno Unito, Francia, Germania, Spagna, Portogallo, Italia, Australia non sono accettati." +"Amazon Checkout cancel URL Path","Percorso URL di annullamento checkout Amazon Pay (solo UE/Regno Unito)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Le modifiche improprie possono danneggiare l'integrazione. Modifica questo valore solo se necessario.
I tuoi clienti verranno indirizzati a questo URL quando cliccheranno su “Annulla il checkout di Amazon Pay e torna a [nome venditore]” durante il pagamento. Per impostazione predefinita, i clienti verranno reindirizzati alla pagina di pre-pagamento." +"Amazon Sign In cancel URL Path","Percorso URL di annullamento accesso ad Amazon (solo UE/Regno Unito)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Le modifiche improprie possono danneggiare l'integrazione. Modifica questo valore solo se necessario.
I tuoi clienti verranno reindirizzati a questo URL quando cliccheranno su “Annulla” nella pagina Accedi con Amazon. Non inserire una barra iniziale. Per impostazione predefinita, i clienti verranno reindirizzati alla pagina precedente." diff --git a/i18n/it_IT.csv b/i18n/it_IT.csv index a7061a2d3..5f9048952 100644 --- a/i18n/it_IT.csv +++ b/i18n/it_IT.csv @@ -190,3 +190,7 @@ "Only change this value if required. Improper modifications can break the integration. After the order is complete, your customer will be redirected to this URL. Don't enter a leading slash.","Modifica questo valore solo se necessario. Le modifiche improprie possono danneggiare l'integrazione. Una volta completato l'ordine, il cliente verrà reindirizzato a questo URL. Non inserire una barra iniziale." "Refund declined for order #%1","Rimborso rifiutato per l'ordine #%1" "Note: Amazon Pay only supports multi-currency functionality for the payment regions United Kingdom and Euro region. Supported currencies: AUD, GBP, DKK, EUR, HKD, JPY, NZD, NOK, ZAR, SEK, CHF, USD.","Nota: se abilitati, gli indirizzi delle caselle postali negli Stati Uniti, Canada, Regno Unito, Francia, Germania, Spagna, Portogallo, Italia, Australia non sono accettati." +"Amazon Checkout cancel URL Path","Percorso URL di annullamento checkout Amazon Pay (solo UE/Regno Unito)" +"Amazon Pay Checkout could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel Amazon Pay checkout and return to [merchant site]"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before checkout (EU/UK regions only).","Le modifiche improprie possono danneggiare l'integrazione. Modifica questo valore solo se necessario.
I tuoi clienti verranno indirizzati a questo URL quando cliccheranno su “Annulla il checkout di Amazon Pay e torna a [nome venditore]” durante il pagamento. Per impostazione predefinita, i clienti verranno reindirizzati alla pagina di pre-pagamento." +"Amazon Sign In cancel URL Path","Percorso URL di annullamento accesso ad Amazon (solo UE/Regno Unito)" +"Amazon Pay Sign In could potentially break if this value is modified. Do it only if it is needed by your website.
Amazon Pay will redirect to this URL if the customer clicks ""Cancel"" from the Amazon-hosted page. Do not use a leading slash. Leave blank to return the customer to the last page visited before sign in (EU/UK regions only).","Le modifiche improprie possono danneggiare l'integrazione. Modifica questo valore solo se necessario.
I tuoi clienti verranno reindirizzati a questo URL quando cliccheranno su “Annulla” nella pagina Accedi con Amazon. Non inserire una barra iniziale. Per impostazione predefinita, i clienti verranno reindirizzati alla pagina precedente." diff --git a/view/adminhtml/templates/system/config/autokeyexchange_admin.phtml b/view/adminhtml/templates/system/config/autokeyexchange_admin.phtml index 32b312e4a..61ac19985 100644 --- a/view/adminhtml/templates/system/config/autokeyexchange_admin.phtml +++ b/view/adminhtml/templates/system/config/autokeyexchange_admin.phtml @@ -15,6 +15,7 @@ */ /* @var \Amazon\Pay\Block\Adminhtml\System\Config\AutoKeyExchangeAdmin $block */ +$currency = $block->getCurrency(); ?>
@@ -23,7 +24,7 @@
- getCurrency()): // Auto Key Exchange not supported ?> +
escapeHtml(__('An unsupported currency is currently selected. ' . 'Please review our configuration guide.')); ?> @@ -33,7 +34,8 @@
- + +
escapeHtml( diff --git a/view/frontend/requirejs-config.js b/view/frontend/requirejs-config.js index 5bf289f52..da6e4ebed 100755 --- a/view/frontend/requirejs-config.js +++ b/view/frontend/requirejs-config.js @@ -31,6 +31,9 @@ var config = { 'Magento_Checkout/js/view/shipping-address/address-renderer/default': { 'Amazon_Pay/js/view/shipping-address/address-renderer/default': true }, + 'Magento_PurchaseOrder/js/view/checkout/shipping-address/address-renderer/default': { + 'Amazon_Pay/js/view/shipping-address/address-renderer/default': true + }, 'Magento_Checkout/js/view/billing-address': { 'Amazon_Pay/js/view/billing-address': true }, diff --git a/view/frontend/web/js/amazon-button.js b/view/frontend/web/js/amazon-button.js index 2a8dae240..578533cbe 100755 --- a/view/frontend/web/js/amazon-button.js +++ b/view/frontend/web/js/amazon-button.js @@ -23,7 +23,8 @@ define([ 'Magento_Customer/js/customer-data', 'Magento_Checkout/js/model/payment/additional-validators', 'mage/storage', - 'Magento_Checkout/js/model/error-processor' + 'Magento_Checkout/js/model/error-processor', + 'Magento_Ui/js/model/messageList', ], function ( ko, $, @@ -35,7 +36,8 @@ define([ customerData, additionalValidators, storage, - errorProcessor + errorProcessor, + globalMessageList ) { 'use strict'; @@ -49,6 +51,7 @@ define([ }, drawing: false, + amazonPayButton: null, _loadButtonConfig: function (callback) { checkoutSessionConfigLoad(function (checkoutSessionConfig) { @@ -75,16 +78,43 @@ define([ _loadInitCheckoutPayload: function (callback, payloadType) { checkoutSessionConfigLoad(function (checkoutSessionConfig) { + var self = this; buttonPayloadLoad(function (buttonPayload) { - callback({ + var initCheckoutPayload = { createCheckoutSessionConfig: { payloadJSON: buttonPayload[0], signature: buttonPayload[1], publicKeyId: checkoutSessionConfig['public_key_id'] } - }); + }; + + if (payloadType !== 'paynow' + && !amazonStorage.isMulticurrencyEnabled + && !JSON.parse(buttonPayload[0]).recurringMetadata) + { + initCheckoutPayload.estimatedOrderAmount = self._getEstimatedAmount(); + } + callback(initCheckoutPayload); }, payloadType); + }.bind(this)); + }, + + _getEstimatedAmount: function () { + var currencyCode; + var subtotal = parseFloat(customerData.get('cart')().subtotalAmount).toFixed(2); + + checkoutSessionConfigLoad(function (checkoutSessionConfig) { + currencyCode = checkoutSessionConfig['currency']; }); + + if (currencyCode === 'JPY') { + subtotal = parseFloat(subtotal).toFixed(0); + } + + return { + amount: subtotal, + currencyCode: currencyCode + }; }, /** @@ -138,12 +168,12 @@ define([ this._loadButtonConfig(function (buttonConfig) { try { - var amazonPayButton = amazon.Pay.renderButton('#' + $buttonRoot.empty().removeUniqueId().uniqueId().attr('id'), buttonConfig); + self.amazonPayButton = amazon.Pay.renderButton('#' + $buttonRoot.empty().removeUniqueId().uniqueId().attr('id'), buttonConfig); } catch (e) { console.log('Amazon Pay button render error: ' + e); return; } - amazonPayButton.onClick(function() { + self.amazonPayButton.onClick(function() { if (self.buttonType === 'PayNow' && !additionalValidators.validate()) { return false; } @@ -156,7 +186,7 @@ define([ ).done( function (response) { if (!response.error) { - self._initCheckout(amazonPayButton); + self._initCheckout(); } else { errorProcessor.process(response); } @@ -167,23 +197,43 @@ define([ } ); }else{ - self._initCheckout(amazonPayButton); + self._initCheckout(); } }); $('.amazon-button-container .field-tooltip').fadeIn(); self.drawing = false; + + if (self.buttonType === 'PayNow' && self._isPayOnly()) { + customerData.get('checkout-data').subscribe(function (checkoutData) { + const opacity = checkoutData.selectedBillingAddress ? 1 : 0.5; + + const shadow = $('.amazon-checkout-button > div')[0].shadowRoot; + $(shadow).find('.amazonpay-button-view1').css('opacity', opacity); + }); + } }); }, this); } }, - _initCheckout: function (amazonPayButton) { + _initCheckout: function () { + var self = this; + + if (self.buttonType === 'PayNow' && self._isPayOnly()) { + if (!customerData.get('checkout-data')().selectedBillingAddress) { + return; + } else { + var setBillingAddressAction = require('Magento_Checkout/js/action/set-billing-address'); + setBillingAddressAction(globalMessageList); + } + } + var payloadType = this.buttonType ? 'paynow' : 'checkout'; this._loadInitCheckoutPayload(function (initCheckoutPayload) { - amazonPayButton.initCheckout(initCheckoutPayload); + self.amazonPayButton.initCheckout(initCheckoutPayload); }, payloadType); customerData.invalidate('*'); }, @@ -200,6 +250,10 @@ define([ if (!$(self.options.hideIfUnavailable).first().is(':visible')) { self._draw(); } + + if (self.amazonPayButton && self.buttonType !== 'PayNow') { + self.amazonPayButton.updateButtonInfo(self._getEstimatedAmount()); + } }); }); }, @@ -209,7 +263,6 @@ define([ } }); - var cart = customerData.get('cart'), customer = customerData.get('customer'), canCheckoutWithAmazon = false; diff --git a/view/frontend/web/js/model/storage.js b/view/frontend/web/js/model/storage.js index b3a7a8333..70afc64d9 100755 --- a/view/frontend/web/js/model/storage.js +++ b/view/frontend/web/js/model/storage.js @@ -31,11 +31,13 @@ define([ var isLwaEnabled = amazonPayConfig.getValue('is_lwa_enabled'); var isGuestCheckoutEnabled = amazonPayConfig.getValue('is_guest_checkout_enabled'); + var isMulticurrencyEnabled = amazonPayConfig.getValue('is_multicurrency_enabled'); return { isEnabled: isEnabled, isLwaEnabled: isLwaEnabled, isGuestCheckoutEnabled: isGuestCheckoutEnabled, + isMulticurrencyEnabled: isMulticurrencyEnabled, /** * Is checkout using Amazon Pay? diff --git a/view/frontend/web/js/view/payment/method-renderer/amazon-payment-method.js b/view/frontend/web/js/view/payment/method-renderer/amazon-payment-method.js index fad122738..06cef8806 100755 --- a/view/frontend/web/js/view/payment/method-renderer/amazon-payment-method.js +++ b/view/frontend/web/js/view/payment/method-renderer/amazon-payment-method.js @@ -44,7 +44,7 @@ define( return Component.extend({ defaults: { isAmazonCheckout: ko.observable(amazonStorage.isAmazonCheckout()), - isBillingAddressVisible: ko.observable(false), + isBillingAddressVisible: ko.observable(!quote.billingAddress()), isIosc: ko.observable($('button.iosc-place-order-button').length > 0), paymentDescriptor: ko.observable(''), logo: 'Amazon_Pay/images/logo/Black-L.png',