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 @@ -219,6 +219,8 @@ protected function addBillingData(\SimpleXMLElement $data)
219219 $ req ->customer ->id = $ customer ;
220220 }
221221
222+ $ req ->order ->description = $ this ->getDescription ();
223+
222224 /** @var CreditCard $card */
223225 if ($ card = $ this ->getCard ()) {
224226 // 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()
2222 $ this ->purchaseOptions = array (
2323 'amount ' => '10.00 ' ,
2424 'card ' => $ this ->getValidCard (),
25+ 'description ' => 'purchase ' ,
2526 );
2627
2728 $ this ->captureOptions = array (
2829 'amount ' => '10.00 ' ,
2930 'transactionReference ' => '12345 ' ,
31+ 'description ' => 'capture ' ,
3032 );
3133
3234 $ this ->voidOptions = array (
3335 'transactionReference ' => '12345 ' ,
36+ 'description ' => 'void ' ,
3437 );
3538
3639 $ this ->refundOptions = array (
3740 'amount ' => '10.00 ' ,
3841 'transactionReference ' => '12345 ' ,
39- 'card ' => $ this ->getValidCard ()
42+ 'card ' => $ this ->getValidCard (),
43+ 'description ' => 'refund ' ,
4044 );
4145 }
4246
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ public function testGetData()
4444 "amount " ,
4545 "payment " ,
4646 "customer " ,
47+ "order " ,
4748 "billTo " ,
4849 "shipTo " ,
4950 "customerIP " ,
You can’t perform that action at this time.
0 commit comments