private function setConfig(array $config = [])
    {
        // Set Api Credentials
        if (function_exists('config')) {
            $this->setApiCredentials(
                config('paypal')
            );
        } elseif (!empty($config)) {
            $this->setApiCredentials($config);
        }

        $this->setRequestData();
    }
private function setConfig(array $config = [])
    {
        // Set Api Credentials
        if (function_exists('config')) {
            $this->setApiCredentials(
                config('paypal')
            );
        } elseif (!empty($config)) {
            $this->setApiCredentials($config);
        }

        $this->setRequestData();
    }
private function setConfig ( array $ config = [ ] ) { // Set Api Credentials if ( function_exists ( 'config' ) ) { $ this -> setApiCredentials ( config ( 'paypal' ) ) ; } elseif ( ! empty ( $ config ) ) { $ this -> setApiCredentials ( $ config ) ; } $ this -> setRequestData ( ) ; }
Function To Set PayPal API Configuration.

@param array $config

@throws \Exception
Function To Set PayPal API Configuration .