Adapter/PlentymarketsAdapter/ServiceBus/CommandHandler/Payment/HandlePaymentCommandHandler.php
private function fetchPlentyPayments($payment)
    {
        $url = 'payments/property/1/' . $payment->getTransactionReference();
        $payments = $this->client->request('GET', $url);

        if (empty($payments)) {
            return false;
        }

        $payments = array_filter($payments, function (array $payment) {
            return !$payment['deleted'];
        });

        return $payments;
    }
private function fetchPlentyPayments($payment)
    {
        $url = 'payments/property/1/' . $payment->getTransactionReference();
        $payments = $this->client->request('GET', $url);

        if (empty($payments)) {
            return false;
        }

        $payments = array_filter($payments, function (array $payment) {
            return !$payment['deleted'];
        });

        return $payments;
    }
@param Payment $payment

@return bool