File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed
app/code/Magento/Payment/Block Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -58,19 +58,40 @@ protected function _prepareSpecificInformation($transport = null)
58
58
59
59
foreach ($ fieldsToStore as $ field ) {
60
60
if ($ payment ->getAdditionalInformation ($ field ) !== null ) {
61
- $ transport ->setData (
62
- (string )$ this ->getLabel ($ field ),
63
- (string )$ this ->getValueView (
64
- $ field ,
65
- $ payment ->getAdditionalInformation ($ field )
66
- )
61
+ $ this ->setDataToTransfer (
62
+ $ transport ,
63
+ $ field ,
64
+ $ payment ->getAdditionalInformation ($ field )
67
65
);
66
+
68
67
}
69
68
}
70
69
71
70
return $ transport ;
72
71
}
73
72
73
+ /**
74
+ * Sets data to transport
75
+ *
76
+ * @param \Magento\Framework\Object $transport
77
+ * @param string $field
78
+ * @param string $value
79
+ * @return void
80
+ */
81
+ protected function setDataToTransfer (
82
+ \Magento \Framework \Object $ transport ,
83
+ $ field ,
84
+ $ value
85
+ ) {
86
+ $ transport ->setData (
87
+ (string )$ this ->getLabel ($ field ),
88
+ (string )$ this ->getValueView (
89
+ $ field ,
90
+ $ value
91
+ )
92
+ );
93
+ }
94
+
74
95
/**
75
96
* Returns label
76
97
*
You can’t perform that action at this time.
0 commit comments