File tree 1 file changed +22
-1
lines changed
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,16 @@ public function setComment2($value)
178
178
return $ this ->setParameter ('comment2 ' , $ value );
179
179
}
180
180
181
+ public function getOrderId ()
182
+ {
183
+ return $ this ->getParameter ('orderid ' );
184
+ }
185
+
186
+ public function setOrderId ($ value )
187
+ {
188
+ return $ this ->setParameter ('orderid ' , $ value );
189
+ }
190
+
181
191
/**
182
192
* @deprecated
183
193
*/
@@ -234,7 +244,18 @@ public function getData()
234
244
$ data ['CURRENCY ' ] = $ this ->getCurrency ();
235
245
$ data ['COMMENT1 ' ] = $ this ->getDescription ();
236
246
$ data ['COMMENT2 ' ] = $ this ->getComment2 ();
237
- $ data ['ORDERID ' ] = $ this ->getTransactionId ();
247
+ $ data ['ORDERID ' ] = $ this ->getOrderId ();
248
+
249
+ $ data ['BILLTOEMAIL ' ] = $ this ->getCard ()->getEmail ();
250
+ $ data ['BILLTOPHONENUM ' ] = $ this ->getCard ()->getBillingPhone ();
251
+
252
+ $ items = $ this ->getItems ();
253
+ if (!empty ($ items )) {
254
+ foreach ($ items as $ key => $ item ) {
255
+ $ data ['L_NAME ' . $ key ] = $ item ->getName ();
256
+ $ data ['L_QTY ' . $ key ] = $ item ->getQuantity ();
257
+ }
258
+ }
238
259
239
260
return $ data ;
240
261
}
You can’t perform that action at this time.
0 commit comments