File tree 2 files changed +17
-8
lines changed
2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 15
15
class AdditionalDataAssignObserver extends AbstractDataAssignObserver
16
16
{
17
17
/**
18
- * Additional data keys
18
+ * @var string[]
19
19
*/
20
- public const SELECTED_ISSUER = 'selected_issuer ' ;
21
- public const IBAN = 'iban ' ;
20
+ private $ additionalInformationList ;
22
21
23
22
/**
24
- * @var array
23
+ * AdditionalDataAssignObserver constructor.
24
+ * @param string[] $additionalInformationList
25
25
*/
26
- protected $ additionalInformationList = [
27
- self :: SELECTED_ISSUER ,
28
- self :: IBAN ,
29
- ];
26
+ public function __construct ( array $ additionalInformationList )
27
+ {
28
+ $ this -> additionalInformationList = $ additionalInformationList ;
29
+ }
30
30
31
31
/**
32
32
* @param Observer $observer
Original file line number Diff line number Diff line change 73
73
</arguments >
74
74
</type >
75
75
76
+ <type name =" CM\Payments\Observer\AdditionalDataAssignObserver" >
77
+ <arguments >
78
+ <argument name =" additionalInformationList" xsi : type =" array" >
79
+ <item name =" selected_issuer" xsi : type =" string" >selected_issuer</item >
80
+ <item name =" iban" xsi : type =" string" >iban</item >
81
+ </argument >
82
+ </arguments >
83
+ </type >
84
+
76
85
<!-- BEGIN CM Payments Method -->
77
86
<virtualType name =" CMPaymentsFacade" type =" Magento\Payment\Model\Method\Adapter" >
78
87
<arguments >
You can’t perform that action at this time.
0 commit comments