/
di.xml
71 lines (70 loc) · 3.25 KB
/
di.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<virtualType name="Magento\Paypal\Model\Session\Storage" type="Magento\Framework\Session\Storage">
<arguments>
<argument name="namespace" xsi:type="string">paypal</argument>
</arguments>
</virtualType>
<virtualType name="Magento\Paypal\Model\Session" type="Magento\Framework\Session\Generic">
<arguments>
<argument name="storage" xsi:type="object">Magento\Paypal\Model\Session\Storage</argument>
</arguments>
</virtualType>
<virtualType name="Magento\Paypal\Model\PayflowSession\Storage" type="Magento\Framework\Session\Storage">
<arguments>
<argument name="namespace" xsi:type="string">paypal_payflow</argument>
</arguments>
</virtualType>
<virtualType name="Magento\Paypal\Model\PayflowSession" type="Magento\Framework\Session\Generic">
<arguments>
<argument name="storage" xsi:type="object">Magento\Paypal\Model\PayflowSession\Storage</argument>
</arguments>
</virtualType>
<type name="Magento\Config\Model\Config\Structure">
<plugin name="paypal_system_configuration" type="Magento\Paypal\Model\Config\StructurePlugin"/>
</type>
<type name="Magento\Config\Model\Config\Structure\Element\Field">
<plugin name="paypal_system_configuration_field" type="Magento\Paypal\Model\Config\Structure\Element\FieldPlugin"/>
</type>
<type name="Magento\Backend\Block\Store\Switcher">
<plugin name="paypal_store_switcher" type="Magento\Paypal\Block\Adminhtml\Store\SwitcherPlugin"/>
</type>
<type name="Magento\Paypal\Controller\Adminhtml\Transparent\RequestSecureToken">
<arguments>
<argument name="sessionManager" xsi:type="object">Magento\Backend\Model\Session\Quote</argument>
</arguments>
</type>
<type name="Magento\Paypal\Model\Payflow\Transparent">
<arguments>
<argument name="data" xsi:type="array">
<item name="formBlockType" xsi:type="string">Magento\Payment\Block\Adminhtml\Transparent\Form</item>
</argument>
</arguments>
</type>
<type name="Magento\Paypal\Block\Payment\Info">
<arguments>
<argument name="data" xsi:type="array">
<item xsi:type="string" name="is_secure_mode">0</item>
</argument>
</arguments>
</type>
<type name="Magento\Paypal\Model\Config\Rules\Reader">
<arguments>
<argument xsi:type="object" name="fileResolver">Magento\Paypal\Model\Config\Rules\FileResolver</argument>
<argument xsi:type="object" name="schemaLocator">Magento\Paypal\Model\Config\Rules\SchemaLocator</argument>
</arguments>
</type>
<type name="Magento\Vault\Model\Adminhtml\Source\VaultProvidersMap">
<arguments>
<argument name="options" xsi:type="array">
<item xsi:type="object" name="payflowpro">Magento\Paypal\Model\Payflow\Transparent</item>
</argument>
</arguments>
</type>
</config>