File tree 2 files changed +15
-0
lines changed
src/Omnipay/MultiSafepay/Message
tests/Omnipay/MultiSafepay/Message
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,16 @@ public function setExtraData3($value)
86
86
return $ this ->setParameter ('extraData3 ' , $ value );
87
87
}
88
88
89
+ public function getItems ()
90
+ {
91
+ return $ this ->getParameter ('items ' );
92
+ }
93
+
94
+ public function setItems ($ value )
95
+ {
96
+ return $ this ->setParameter ('items ' , $ value );
97
+ }
98
+
89
99
/**
90
100
* {@inheritdoc}
91
101
*/
@@ -135,6 +145,7 @@ public function getData()
135
145
$ transaction ->addChild ('var1 ' , $ this ->getExtraData1 ());
136
146
$ transaction ->addChild ('var2 ' , $ this ->getExtraData2 ());
137
147
$ transaction ->addChild ('var3 ' , $ this ->getExtraData3 ());
148
+ $ transaction ->addChild ('items ' , $ this ->getItems ());
138
149
139
150
$ data ->addChild ('signature ' , $ this ->generateSignature ());
140
151
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ protected function setUp()
41
41
'extraData2 ' => 'extra 2 ' ,
42
42
'extraData3 ' => 'extra 3 ' ,
43
43
'language ' => 'a language ' ,
44
+ 'items ' => 'the items ' ,
44
45
'clientIp ' => '127.0.0.1 ' ,
45
46
'googleAnalyticsCode ' => 'analytics code ' ,
46
47
'card ' => array (
@@ -177,6 +178,7 @@ public function allDataProvider()
177
178
<var1>extra 1</var1>
178
179
<var2>extra 2</var2>
179
180
<var3>extra 3</var3>
181
+ <items>the items</items>
180
182
</transaction>
181
183
<signature>ad447bab87b8597853432c891e341db1</signature>
182
184
</redirecttransaction>
@@ -224,6 +226,7 @@ public function noIssuerDataProvider()
224
226
<var1>extra 1</var1>
225
227
<var2>extra 2</var2>
226
228
<var3>extra 3</var3>
229
+ <items>the items</items>
227
230
</transaction>
228
231
<signature>ad447bab87b8597853432c891e341db1</signature>
229
232
</redirecttransaction>
@@ -274,6 +277,7 @@ public function specialCharsDataProvider()
274
277
<var1>extra 1</var1>
275
278
<var2>extra 2</var2>
276
279
<var3>extra 3</var3>
280
+ <items>the items</items>
277
281
</transaction>
278
282
<signature>ad447bab87b8597853432c891e341db1</signature>
279
283
</redirecttransaction>
You can’t perform that action at this time.
0 commit comments