Components/PayPal/Plentymarkets/PayPalPlusInvoiceRequestGenerator.php
public function generate(Payment $payment)
    {
        $paymentParams = $this->parentRequestGenerator->generate($payment);
        $data = $payment->getPaymentData();

        if (!($data instanceof PayPalPlusInvoicePaymentData)) {
            return $paymentParams;
        }

        $paymentParams['properties'][] = [
            'typeId' => 22,
            'value' => json_encode([
                'accountHolder' => $data->getAccountHolderName(),
                'bankName' => $data->getBankName(),
                'bic' => $data->getBankIdentifierCode(),
                'iban' => $data->getInternationalBankAccountNumber(),
                'paymentDue' => $data->getPaymentDueDate()->format(DATE_W3C),
                'referenceNumber' => $data->getReferenceNumber(),
            ]),
        ];

        return $paymentParams;
    }
public function generate(Payment $payment)
    {
        $paymentParams = $this->parentRequestGenerator->generate($payment);
        $data = $payment->getPaymentData();

        if (!($data instanceof PayPalPlusInvoicePaymentData)) {
            return $paymentParams;
        }

        $paymentParams['properties'][] = [
            'typeId' => 22,
            'value' => json_encode([
                'accountHolder' => $data->getAccountHolderName(),
                'bankName' => $data->getBankName(),
                'bic' => $data->getBankIdentifierCode(),
                'iban' => $data->getInternationalBankAccountNumber(),
                'paymentDue' => $data->getPaymentDueDate()->format(DATE_W3C),
                'referenceNumber' => $data->getReferenceNumber(),
            ]),
        ];

        return $paymentParams;
    }
{@inheritdoc}