events.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:Event/etc/events.xsd">
  19. <event name="sales_order_load_after">
  20. <observer name="amazon_payment_load_order" instance="Amazon\Payment\Observer\LoadOrder" />
  21. </event>
  22. <event name="amazon_payment_authorize_before">
  23. <observer name="amazon_payment_sandbox_simulation_authorization" instance="Amazon\Payment\Observer\SandboxSimulation" />
  24. </event>
  25. <event name="amazon_payment_capture_before">
  26. <observer name="amazon_payment_sandbox_simulation_capture" instance="Amazon\Payment\Observer\SandboxSimulation" />
  27. </event>
  28. <event name="amazon_payment_refund_before">
  29. <observer name="amazon_payment_sandbox_simulation_refund" instance="Amazon\Payment\Observer\SandboxSimulation" />
  30. </event>
  31. <event name="payment_method_assign_data_amazon_payment">
  32. <observer name="amazon_payment_gateway_data_assign" instance="Amazon\Payment\Observer\DataAssignObserver" />
  33. </event>
  34. <event name="checkout_submit_before">
  35. <observer name="amazon_payment_ignore_billing_address_validation" instance="Amazon\Payment\Observer\IgnoreBillingAddressValidation" />
  36. </event>
  37. <event name="amazon_payment_pending_authorization_soft_decline_after">
  38. <observer name="amazon_payment_soft_decline_email" instance="Amazon\Payment\Observer\SoftDeclinedEmailSender" />
  39. </event>
  40. <event name="amazon_payment_pending_authorization_hard_decline_after">
  41. <observer name="amazon_payment_hard_decline_email" instance="Amazon\Payment\Observer\HardDeclinedEmailSender" />
  42. </event>
  43. </config>