Laravel E-commerce Config for Payment Status

Laravel E-commerce Config for Payment Status

    Laravel E-commerce Config for Payment Status

    Put the below code in the helpers.php class.

            public static function get_business_settings($name)
        {
            $config = null;
    
            $paymentmethod = BusinessSetting::where('key', $name)->first();
    
            if ($paymentmethod) {
               
                $config = json_decode(json_encode($paymentmethod->value), true);
                $config = json_decode($config, true);
            }
    
            return $config;
        } 
     

    Courses


    Recommended posts


    Recent posts