Laravel E-commerce Config for Payment Status

Created At: 2023-02-15 23:17:44 Updated At: 2023-05-08 03:02:31

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;
    } 
 

Comment

Add Reviews