File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ public function getData()
42
42
'taxExempt ' => $ this ->getTaxExempt (),
43
43
];
44
44
45
+ // Remove null values
46
+ $ data = array_filter ($ data );
47
+
45
48
$ data += $ this ->getCardData ();
46
49
47
50
return $ data ;
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ public function testGetData()
40
40
$ this ->assertSame ('Kayla ' , $ data ['billing ' ]['firstName ' ]);
41
41
$ this ->assertSame ('League ' , $ data ['shipping ' ]['company ' ]);
42
42
$ this ->assertFalse ($ data ['options ' ]['submitForSettlement ' ]);
43
- $ this ->assertNull ($ data ['billingAddressId ' ]);
43
+
44
+ // Check empty values are not sent
45
+ $ this ->assertFalse (isset ($ data ['billingAddressId ' ]));
44
46
45
47
$ this ->request ->configure ();
46
48
$ this ->assertSame ('production ' , \Braintree_Configuration::environment ());
You can’t perform that action at this time.
0 commit comments