diff --git a/src/Client.php b/src/Client.php index 3b8c4ca..e93be12 100644 --- a/src/Client.php +++ b/src/Client.php @@ -424,8 +424,8 @@ public function getLastOrdersForMerchants(\DateTimeInterface $from, \DateTimeInt $data['from'] = $from->format($this->dateFormat); $data['to'] = $to->format($this->dateFormat); - $data['transactionStates'] = implode(array_unique($data['transactionStates']), ','); - $data['merchants'] = implode(array_unique($data['merchants']), ','); + $data['transactionStates'] = implode(',', array_unique($data['transactionStates'])); + $data['merchants'] = implode(',', array_unique($data['merchants'])); return $this->execute($this->prefixDefault . 'getLastOrdersForMerchants.do', $data); }