di.xml 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License").
  7. * You may not use this file except in compliance with the License.
  8. * A copy of the License is located at
  9. *
  10. * http://aws.amazon.com/apache2.0
  11. *
  12. * or in the "license" file accompanying this file. This file is distributed
  13. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  14. * express or implied. See the License for the specific language governing
  15. * permissions and limitations under the License.
  16. */
  17. -->
  18. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  19. <type name="Amazon\Payment\Block\Minicart\Button">
  20. <arguments>
  21. <argument name="data" xsi:type="array">
  22. <item name="template" xsi:type="string">Amazon_Payment::minicart-button.phtml</item>
  23. <item name="alias" xsi:type="string">amazon.button.mini-cart</item>
  24. </argument>
  25. <argument name="payment" xsi:type="object">Amazon\Payment\Gateway\Config\Config</argument>
  26. </arguments>
  27. </type>
  28. <type name="Magento\Checkout\Block\Checkout\LayoutProcessor">
  29. <plugin name="amazon_payment_checkout_processor" type="Amazon\Payment\Plugin\CheckoutProcessor" />
  30. </type>
  31. </config>