';
+
+ $result = $this->applePayDomainAssociationFileButton
+ ->render($this->createMock(AbstractElement::class));
+
+ $this->assertEquals($expected, $result);
+ }
+
+ /**
+ * Asserts return type of the button's backend model
+ *
+ * @return void
+ */
+ public function testPrepareLayout()
+ {
+ $result = $this->applePayDomainAssociationFileButton->setLayout($this->layoutMock);
+ $this->assertInstanceOf(ApplePayDomainAssociationFileButton::class, $result);
+ }
+
+ /**
+ * Asserts file download controller URL
+ *
+ * @return void
+ */
+ public function testGetActionUrl()
+ {
+ $expected = 'https://www.magento.demo/adyen/configuration/DownloadApplePayDomainAssociationFile';
+ $this->backendHelperMock->expects($this->once())
+ ->method('getUrl')
+ ->with('adyen/configuration/DownloadApplePayDomainAssociationFile', [])
+ ->willReturn($expected);
+
+ $url = $this->applePayDomainAssociationFileButton->getActionUrl();
+
+ $this->assertEquals($expected, $url);
+ }
+}
diff --git a/VERSION b/VERSION
index 69dd356299..be62bf9b12 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-9.12.1
+9.12.2
diff --git a/composer.json b/composer.json
index ed7b5a459b..6c775c9348 100755
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
"name": "adyen/module-payment",
"description": "Official Magento2 Plugin to connect to Payment Service Provider Adyen.",
"type": "magento2-module",
- "version": "9.12.1",
+ "version": "9.12.2",
"license": "MIT",
"repositories": [
{
@@ -23,7 +23,7 @@
"require-dev": {
"phpunit/phpunit": "~9.6.1",
"magento/magento-coding-standard": "*",
- "squizlabs/php_codesniffer": "~3.8.0"
+ "squizlabs/php_codesniffer": "~3.11.0"
},
"autoload": {
"files": [
diff --git a/etc/adminhtml/system/adyen_alternative_payment_methods.xml b/etc/adminhtml/system/adyen_alternative_payment_methods.xml
index 21dcfb7a81..ae858674c6 100755
--- a/etc/adminhtml/system/adyen_alternative_payment_methods.xml
+++ b/etc/adminhtml/system/adyen_alternative_payment_methods.xml
@@ -19,8 +19,8 @@
Set up additional payment methods to accept online and in-app payments and eliminate the need for traditional card-based transactions.]]>
-
- Adyen\Payment\Model\Config\Adminhtml\ApplepayCertificateButton
+
+ Adyen\Payment\Model\Config\Adminhtml\ApplePayDomainAssociationFileButton
diff --git a/view/adminhtml/templates/config/applepay_button.phtml b/view/adminhtml/templates/config/applepay_button.phtml
deleted file mode 100644
index e57195c9fe..0000000000
--- a/view/adminhtml/templates/config/applepay_button.phtml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/view/adminhtml/templates/config/applepay_domain_association_file_button.phtml b/view/adminhtml/templates/config/applepay_domain_association_file_button.phtml
new file mode 100644
index 0000000000..a25f333024
--- /dev/null
+++ b/view/adminhtml/templates/config/applepay_domain_association_file_button.phtml
@@ -0,0 +1,4 @@
+
+
diff --git a/view/adminhtml/templates/support/js.phtml b/view/adminhtml/templates/support/js.phtml
index 865b1b8ec3..175681cb4b 100644
--- a/view/adminhtml/templates/support/js.phtml
+++ b/view/adminhtml/templates/support/js.phtml
@@ -20,38 +20,38 @@ require([
const linksMapping = {
required_settings: [
{
- title: 'Magento plugin setup',
- href: 'https://docs.adyen.com/plugins/magento-2/set-up-the-plugin-in-magento#step-3-configure-the-plugin-in-magento'
+ title: 'Adobe Commerce plugin setup',
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/set-up-the-plugin-in-adobe-commerce/'
},
{
title: 'How to request a new merchant account',
href: 'https://www.adyen.com/education/europe/english/modules/customer-area'
},
{
- title: 'Why Apple pay is not working',
- href: 'https://www.adyen.help/hc/en-us/articles/4871941388444-how-can-i-handle-errors-with-my-applepay-payments'
+ title: 'Why is Apple pay not working',
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/drop-in-and-components/why-do-i-receive-a-422-error-with-apple-pay-when-using-adyens-certificate'
},
{
title: 'Go-live checklist',
- href: 'https://docs.adyen.com/plugins/magento-2/go-live-checklist'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/go-live-checklist'
},
{
title: 'Troubleshooting guide',
- href: 'https://docs.adyen.com/plugins/magento-2/troubleshooting'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/troubleshooting/'
},
{
title: 'Why do I get the error 401 Unauthorized?',
- href: 'https://www.adyen.help/hc/en-us/articles/5231709306652-why-do-i-get-the-error-401-unauthorized'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/error-codes/why-do-i-get-the-error-401-unauthorized'
}
],
card_payments: [
{
title: 'How to configure card payments ',
- href: 'https://docs.adyen.com/plugins/magento-2/set-up-the-payment-methods-in-magento#api-credit-card-payments'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/set-up-the-payment-methods-in-adobe-commerce'
},
{
title: 'What are supported schemes?',
- href: 'https://docs.adyen.com/plugins/magento-2/supported-payment-methods#credit-and-debit-cards'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/supported-payment-methods'
},
{
title: '3D Secure 2 Component integration',
@@ -61,11 +61,11 @@ require([
card_tokenization: [
{
title: 'How to set up tokenization',
- href: 'https://docs.adyen.com/plugins/magento-2/set-up-tokenization'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/set-up-tokenization'
},
{
title: 'Video: How to set up tokenization',
- href: 'https://help.adyen.com/academy/how-to-videos/plugins/how-to-set-up-tokenization-in-your-magento-plugin'
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/how-do-i-set-up-tokenization-in-adobe-commerce'
},
{
title: 'Difference between One-off, Subscription and Top-ups',
@@ -73,25 +73,25 @@ require([
},
{
title: 'Why do I receive a 800 Contract not found error?',
- href: 'https://www.adyen.help/hc/en-us/articles/5231491632668-why-do-i-receive-a-800-contract-not-found-error'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/error-codes/why-do-i-receive-a-800-contract-not-found-error'
},
{
title: 'Why do I receive a 803 PaymentDetail not found error?',
- href: 'https://www.adyen.help/hc/en-us/articles/5231662267420-why-do-i-receive-a-803-paymentdetail-not-found-error'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/error-codes/why-do-i-receive-a-803-paymentdetail-not-found-error'
},
{
title: 'Why does my recurring transaction give the error "invalid card number"?',
- href: 'https://www.adyen.help/hc/en-us/articles/5234058320412-why-does-my-recurring-transaction-give-the-error-invalid-card-number'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/tokenization/why-does-my-recurring-transaction-give-the-error-invalid-card-number'
}
],
alt_payment_methods: [
{
- title: 'Why are Adyen alternative payment methods not showing up in Magento?',
- href: 'https://www.adyen.help/hc/en-us/articles/5034154365340-Why-are-Adyen-alternative-payment-methods-not-showing-up-in-Magento-'
+ title: 'Why are Adyen alternative payment methods not showing up in Adobe Commerce?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/why-arent-all-payment-methods-displayed-adobe-commerce'
},
{
title: 'Supported Payment Methods',
- href: 'https://docs.adyen.com/plugins/magento-2/supported-payment-methods#credit-and-debit-cards'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/supported-payment-methods/'
},
{
title: 'How to add payment methods in Customer Area',
@@ -99,19 +99,15 @@ require([
},
{
title: 'How do I deactivate or delete a payment method?',
- href: 'https://www.adyen.help/hc/en-us/articles/5439872869404-how-do-i-deactivate-or-delete-a-payment-method'
+ href: 'https://help.adyen.com/knowledge/payment-methods/manage-payment-methods/how-do-i-deactivate-or-delete-a-payment-method'
},
{
title: 'Video: How to add payment methods in Customer Area',
href: 'https://www.adyen.com/education/europe/english/modules/customer-area'
},
{
- title: 'How do I change the order of payment methods on my checkout page?',
- href: 'https://www.adyen.help/hc/en-us/articles/4871657923612-how-can-i-change-the-order-of-my-payment-methods'
- },
- {
- title: 'How can we change the order of the payment methods inside Magento 2?',
- href: 'https://www.adyen.help/hc/en-us/articles/5034413982876-how-can-we-change-the-order-of-the-payment-methods-inside-magento-2'
+ title: 'How can we change the order of the payment methods inside Adobe Commerce 2?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/how-can-i-change-the-order-of-the-payment-methods-adobe-commerce'
}
],
pos_integration: [
@@ -127,123 +123,115 @@ require([
pay_by_link: [
{
title: 'How to set up Pay By Link in the plugin',
- href: 'https://docs.adyen.com/plugins/magento-2/set-up-the-payment-methods-in-magento#pay-by-link'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/set-up-the-payment-methods-in-adobe-commerce/#pay-by-link'
},
{
title: 'Video: How to set up PayByLink',
- href: 'https://help.adyen.com/academy/how-to-videos/plugins/how-to-set-up-pay-by-link-in-your-magento-plugin'
+ href: 'https://help.adyen.com/academy/how-to-videos/plugins/how-to-set-up-pay-by-link-in-your-adobe-commerce-plugin'
}
],
adyen_giving: [
{
title: 'How to set up Donations in the plugin',
- href: 'https://docs.adyen.com/plugins/magento-2/set-up-the-payment-methods-in-magento#donations'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/set-up-the-payment-methods-in-adobe-commerce/#donations'
},
{
title: 'Video: How to set up Adyen Giving',
- href: 'https://help.adyen.com/academy/how-to-videos/plugins/how-to-set-up-giving-in-your-magento-plugin/'
+ href: 'https://help.adyen.com/academy/how-to-videos/plugins/how-to-set-up-giving-in-your-adobe-commerce-plugin'
}
],
advanced_settings: [
{
- title: 'Why does the order status in Magento remain on "Payment Review"?',
- href: 'https://www.adyen.help/hc/en-us/articles/5033911246876-Why-does-the-order-status-in-Magento-remain-on-Payment-Review-'
+ title: 'Why does the order status in Adobe Commerce remain on "Payment Review"?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/why-is-my-payment-pending-in-adobe-commerce'
},
{
- title: 'Why is the text in Magento not being translated?',
- href: 'https://www.adyen.help/hc/en-us/articles/5034181926300-Why-is-the-text-in-Magento-not-being-translated-'
+ title: 'Why is the text in Adobe Commerce not being translated?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/why-is-the-text-in-adobe-commerce-not-being-translated'
},
{
- title: 'How can we customise the Magento 2 plugin?',
- href: 'https://www.adyen.help/hc/en-us/articles/5034486805532-How-can-we-customise-the-Magento-2-plugin-'
+ title: 'How can we customise the Adobe Commerce plugin?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/how-can-we-customise-the-adobe-commerce-plugin'
},
{
- title: 'Why is my order status Settled or SentForSettle after I refunded it on Magento?',
- href: 'https://www.adyen.help/hc/en-us/articles/5034488629660-Why-is-my-order-status-Settled-or-SentForSettle-after-I-refunded-it-on-Magento-'
+ title: 'Why is my order status Settled or SentForSettle after I refunded it on Adobe Commerce?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/why-is-my-order-status-settled-or-sentforsettle-after-i-refunded-it-on-adobe-commerce'
},
{
title: 'Why are Klarna payments stuck in Pending?',
- href: 'https://www.adyen.help/hc/en-us/articles/5032453938460-why-are-klarna-payments-stuck-in-pending'
- },
- {
- title: 'Why are the orders not created in Magento after a payment is processed in Adyen?',
- href: 'https://www.adyen.help/hc/en-us/articles/5033911246876-why-does-the-order-status-in-magento-remain-on-payment-review'
+ href: 'https://help.adyen.com/knowledge/plugins/using-plugins/why-are-klarna-payments-still-pending'
},
{
title: 'How can I change the capture settings of my payment method?',
- href: 'https://www.adyen.help/hc/en-us/articles/5003914234140-how-can-i-change-the-capture-settings-of-my-payment-method'
+ href: 'https://help.adyen.com/knowledge/payment-methods/manage-payment-methods/how-can-i-change-the-capture-settings-of-my-payment-method'
}
],
payment_status: [
{
- title: 'Why is my order status Settled or SentForSettle after I refunded it on Magento?',
- href: 'https://www.adyen.help/hc/en-us/articles/5034488629660-Why-is-my-order-status-Settled-or-SentForSettle-after-I-refunded-it-on-Magento-'
+ title: 'Why is my order status Settled or SentForSettle after I refunded it on Adobe Commerce?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/why-is-my-order-status-settled-or-sentforsettle-after-i-refunded-it-on-adobe-commerce'
},
{
title: 'Why are Klarna payments stuck in Pending?',
- href: 'https://www.adyen.help/hc/en-us/articles/5032453938460-why-are-klarna-payments-stuck-in-pending'
+ href: 'https://help.adyen.com/knowledge/plugins/using-plugins/why-are-klarna-payments-still-pending'
},
- {
- title: 'Why does the order status in Magento remain on "Payment Review"?',
- href: 'https://www.adyen.help/hc/en-us/articles/5033911246876-Why-does-the-order-status-in-Magento-remain-on-Payment-Review-'
- }
],
failed_transaction: [
{
title: 'What does it mean if a payment is refused because 3d-secure: Authentication failed?',
- href: 'https://www.adyen.help/hc/en-us/articles/5295691501596-what-does-it-mean-if-a-payment-is-refused-because-3dsecure-authentication-failed'
+ href: 'https://help.adyen.com/knowledge/3d-secure/3ds-response-codes/what-does-it-mean-if-a-payment-is-refused-because-3d-secure-authentication-failed'
},
{
title: 'Why is my payment canceled?',
- href: 'https://www.adyen.help/hc/en-us/articles/4545692297884-why-is-my-payment-canceled'
+ href: 'https://help.adyen.com/knowledge/payments/payment-statuses/why-is-my-payment-canceled'
},
{
title: 'Why do I receive a 905 Payment details are not supported error?',
- href: 'https://www.adyen.help/hc/en-us/articles/5231655519004-why-do-i-receive-a-905-payment-details-are-not-supported-error'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/error-codes/why-do-i-receive-a-905-payment-details-are-not-supported-error'
},
{
title: 'Why do I receive a 403 or 010 Not Allowed error?',
- href: 'https://www.adyen.help/hc/en-us/articles/5231707550364-why-do-i-receive-a-403-or-010-not-allowed-error'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/error-codes/why-do-i-receive-a-403-or-010-not-allowed-error'
},
{
title: 'Why do I receive the error 422 : Unable to Decrypt Data using the Card Component or Drop-In?',
- href: 'https://www.adyen.help/hc/en-us/articles/5233146584988-why-do-i-receive-the-error-422-unable-to-decrypt-data-using-the-card-component-or-dropin'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/drop-in-and-components/why-do-i-receive-the-error-422-unable-to-decrypt-data-using-the-card-component-or-dropin'
},
{
title: 'Why do I receive a 807 Invalid combination of shopper interaction and recurring contract error?',
- href: 'https://www.adyen.help/hc/en-us/articles/5231605902492-why-do-i-receive-a-807-invalid-combination-of-shopper-interaction-and-recurring-contract-error'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/error-codes/why-do-i-receive-a-807-invalid-combination-of-shopper-interaction-and-recurring-contract-error'
},
{
title: 'Why do I get errorCode 908: invalid request with HTTP status 500?',
- href: 'https://www.adyen.help/hc/en-us/articles/5231513160220-why-do-i-get-errorcode-908-invalid-request-with-http-status-500'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/error-codes/why-do-i-get-errorcode-908-invalid-request-with-http-status-500'
}
],
offer: [
{
- title: 'Why does the order status in Magento remain on "Payment Review"?',
- href: 'https://www.adyen.help/hc/en-us/articles/5033911246876-Why-does-the-order-status-in-Magento-remain-on-Payment-Review-'
+ title: 'Why does the order status in Adobe Commerce remain on "Payment Review"?',
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/troubleshooting/#orders'
}
],
webhooks: [
{
title: 'How to set up notifications in Customer Area',
- href: 'https://docs.adyen.com/plugins/magento-2/set-up-adyen-customer-area'
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/set-up-adyen-customer-area/?tab=manual_2#step-3-set-up-webhooks'
},
{
- title: 'Why does the order status in Magento remain on "Payment Review"?',
- href: 'https://www.adyen.help/hc/en-us/articles/5033911246876-Why-does-the-order-status-in-Magento-remain-on-Payment-Review-'
+ title: 'Why does the order status in Adobe Commerce remain on "Payment Review"?',
+ href: 'https://docs.adyen.com/plugins/adobe-commerce/troubleshooting/#orders'
},
{
- title: 'Why does Magento 2 does not receive notifications?',
- href: 'https://www.adyen.help/hc/en-us/articles/5034412585116-Why-does-Magento-2-does-not-receive-notifications-'
+ title: 'Why does Adobe Commerce not receive notifications?',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/why-does-adobe-commerce-does-not-receive-notifications'
},
{
- title: 'I get a 301, 302 or 401 error in Magento when testing the notification endpoint',
- href: 'https://www.adyen.help/hc/en-us/articles/5034799389980-I-get-a-301-302-or-401-error-in-Magento-when-testing-the-notification-endpoint'
+ title: 'I get a 301, 302 or 401 error in Adobe Commerce when testing the notification endpoint',
+ href: 'https://help.adyen.com/knowledge/plugins/adobe-commerce/why-am-i-receiving-301-302-or-401-error-in-adobe-commerce'
},
{
title: 'How can I get additional data in standard Notifications?',
- href: 'https://www.adyen.help/hc/en-us/articles/5234558016540-how-can-i-get-additional-data-in-standard-notifications'
+ href: 'https://help.adyen.com/knowledge/ecommerce-integrations/webhooks/how-can-i-get-additional-data-in-standard-webhooks'
}
]
};