File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ protected function addBillingData(\SimpleXMLElement $data)
210
210
$ req ->customer ->id = $ customer ;
211
211
}
212
212
213
+ $ req ->order ->description = $ this ->getDescription ();
214
+
213
215
/** @var CreditCard $card */
214
216
if ($ card = $ this ->getCard ()) {
215
217
// A card is present, so include billing and shipping details
Original file line number Diff line number Diff line change @@ -22,21 +22,25 @@ public function setUp()
22
22
$ this ->purchaseOptions = array (
23
23
'amount ' => '10.00 ' ,
24
24
'card ' => $ this ->getValidCard (),
25
+ 'description ' => 'purchase ' ,
25
26
);
26
27
27
28
$ this ->captureOptions = array (
28
29
'amount ' => '10.00 ' ,
29
30
'transactionReference ' => '12345 ' ,
31
+ 'description ' => 'capture ' ,
30
32
);
31
33
32
34
$ this ->voidOptions = array (
33
35
'transactionReference ' => '12345 ' ,
36
+ 'description ' => 'void ' ,
34
37
);
35
38
36
39
$ this ->refundOptions = array (
37
40
'amount ' => '10.00 ' ,
38
41
'transactionReference ' => '12345 ' ,
39
- 'card ' => $ this ->getValidCard ()
42
+ 'card ' => $ this ->getValidCard (),
43
+ 'description ' => 'refund ' ,
40
44
);
41
45
}
42
46
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public function testGetData()
41
41
"amount " ,
42
42
"payment " ,
43
43
"customer " ,
44
+ "order " ,
44
45
"billTo " ,
45
46
"shipTo " ,
46
47
"customerIP " ,
You can’t perform that action at this time.
0 commit comments