File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ public function getData()
43
43
];
44
44
45
45
// Remove null values
46
- $ data = array_filter ($ data );
46
+ $ data = array_filter ($ data , function ($ value ){
47
+ return ! is_null ($ value );
48
+ });
47
49
48
50
$ data += $ this ->getCardData ();
49
51
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public function setUp()
22
22
'token ' => 'abc123 ' ,
23
23
'transactionId ' => '684 ' ,
24
24
'testMode ' => false ,
25
+ 'taxExempt ' => false ,
25
26
'card ' => [
26
27
'firstName ' => 'Kayla ' ,
27
28
'shippingCompany ' => 'League ' ,
@@ -40,6 +41,7 @@ public function testGetData()
40
41
$ this ->assertSame ('Kayla ' , $ data ['billing ' ]['firstName ' ]);
41
42
$ this ->assertSame ('League ' , $ data ['shipping ' ]['company ' ]);
42
43
$ this ->assertFalse ($ data ['options ' ]['submitForSettlement ' ]);
44
+ $ this ->assertFalse ($ data ['taxExempt ' ]);
43
45
44
46
// Check empty values are not sent
45
47
$ this ->assertFalse (isset ($ data ['billingAddressId ' ]));
You can’t perform that action at this time.
0 commit comments