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

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

        $paymentParams['properties'][] = [
            'typeId' => 22,
            'value' => json_encode([
                'currency' => $data->getCurrency(),
                'financingCosts' => $data->getFinancingCosts(),
                'totalCostsIncludeFinancing' => $data->getTotalCostsIncludeFinancing(),
            ]),
        ];

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

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

        $paymentParams['properties'][] = [
            'typeId' => 22,
            'value' => json_encode([
                'currency' => $data->getCurrency(),
                'financingCosts' => $data->getFinancingCosts(),
                'totalCostsIncludeFinancing' => $data->getTotalCostsIncludeFinancing(),
            ]),
        ];

        return $paymentParams;
    }
{@inheritdoc}