|
| 1 | +# Magento_Authorizenet module |
| 2 | + |
1 | 3 | The Magento_Authorizenet module implements the integration with the Authorize.Net payment gateway and makes the latter available as a payment method in Magento.
|
| 4 | + |
| 5 | +## Extensibility |
| 6 | + |
| 7 | +Extension developers can interact with the Magento_Authorizenet module. For more information about the Magento extension mechanism, see [Magento plug-ins](https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html). |
| 8 | + |
| 9 | +[The Magento dependency injection mechanism](https://devdocs.magento.com/guides/v2.3/extension-dev-guide/depend-inj.html) enables you to override the functionality of the Magento_Authorizenet module. |
| 10 | + |
| 11 | +### Events |
| 12 | + |
| 13 | +This module dispatches the following events: |
| 14 | + |
| 15 | + - `checkout_directpost_placeOrder` event in the `\Magento\Authorizenet\Controller\Directpost\Payment\Place::placeCheckoutOrder()` method. Parameters: |
| 16 | + - `result` is a data object (`\Magento\Framework\DataObject` class). |
| 17 | + - `action` is a controller object (`\Magento\Authorizenet\Controller\Directpost\Payment\Place`). |
| 18 | + |
| 19 | + - `order_cancel_after` event in the `\Magento\Authorizenet\Model\Directpost::declineOrder()` method. Parameters: |
| 20 | + - `order` is an order object (`\Magento\Sales\Model\Order` class). |
| 21 | + |
| 22 | + |
| 23 | +This module observes the following events: |
| 24 | + |
| 25 | + - `checkout_submit_all_after` event in the `Magento\Authorizenet\Observer\SaveOrderAfterSubmitObserver` file. |
| 26 | + - `checkout_directpost_placeOrder` event in the `Magento\Authorizenet\Observer\AddFieldsToResponseObserver` file. |
| 27 | + |
| 28 | +For information about events in Magento 2, see [Events and observers](http://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html#events). |
| 29 | + |
| 30 | +### Layouts |
| 31 | + |
| 32 | +This module introduces the following layouts and layout handles in the `view/adminhtml/layout` directory: |
| 33 | + |
| 34 | +- `adminhtml_authorizenet_directpost_payment_redirect` |
| 35 | + |
| 36 | +This module introduces the following layouts and layout handles in the `view/frontend/layout` directory: |
| 37 | + |
| 38 | +- `authorizenet_directpost_payment_backendresponse` |
| 39 | +- `authorizenet_directpost_payment_redirect` |
| 40 | +- `authorizenet_directpost_payment_response` |
| 41 | + |
| 42 | +For more information about layouts in Magento 2, see the [Layout documentation](https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/layout-overview.html). |
0 commit comments