protected function changePaymentTypeInCode($paymentCode, $paymentType)
    {
        $parts = explode('.', $paymentCode);
        $paymentMethod = reset($parts);

        return $paymentMethod.'.'.$paymentType;
    }
protected function changePaymentTypeInCode($paymentCode, $paymentType)
    {
        $parts = explode('.', $paymentCode);
        $paymentMethod = reset($parts);

        return $paymentMethod.'.'.$paymentType;
    }
protected function changePaymentTypeInCode ( $ paymentCode , $ paymentType ) { $ parts = explode ( '.' , $ paymentCode ) ; $ paymentMethod = reset ( $ parts ) ; return $ paymentMethod . '.' . $ paymentType ; }
Changes payment type part in payment code

@param string $paymentCode
@param string $paymentType
@return string
Changes payment type part in payment code