public function getInstallmentConfig()
    {
        $installmentConfig = $this->_dataObjectFactory->create();

        $maxInstallmentQty = $this->getMaximumInstallmentQuantity();
        $installmentConfig->maximumInstallmentQty = $maxInstallmentQty;
        $installmentConfig->minimumInstallmentAmount = $this->getMinimumInstallmentAmount();
        $installmentConfig->interestRate = $this->getInterestRate();

        $installments = [];

        # Looping through all possible installment values
        for ($curInstallment = 1; ($curInstallment <= 12 && $curInstallment <= $maxInstallmentQty); $curInstallment++) {
            if ($curInstallment === 1) {
                # If this is a one time payment, we use the current value and only one installment, no interest
                $installments[$curInstallment] = $this->_dataObjectFactory->create();
                $installments[$curInstallment]->interestRate = $this->getInterestRateForInstallment($curInstallment);
                $installments[$curInstallment]->numberInstallments = 1;
                $installments[$curInstallment]->minimumAmountNoInterest = null;

                continue;
            } else {
                $installments[$curInstallment] = $this->_dataObjectFactory->create();
                $installments[$curInstallment]->interestRate = $this->getInterestRateForInstallment($curInstallment);
                $installments[$curInstallment]->numberInstallments = $curInstallment;
                $installments[$curInstallment]->minimumAmountNoInterest =
                    $this->getMinimumAmountNoInterest($curInstallment);
            }
        }
        $installmentConfig->installments = $installments;

        return $installmentConfig;
    }