Netshell/Paypal "Class Paypal does not exist" FIX

Submitted by escapeboy - 1 year ago

In some cases Netshell/Paypal throws error "Class Paypal does not exist". In my case on ubuntu/php7/nginx (on windows with apache is ok). So here is simple workaround

        $paypal = new \Netshell\Paypal\Paypal;
        $this->_apiContext = $paypal->ApiContext(

            'mode' => 'sandbox',
            'service.EndPoint' => '',
            'http.ConnectionTimeOut' => 30,
            'log.LogEnabled' => true,
            'log.FileName' => storage_path('logs/paypal.log'),
            'log.LogLevel' => 'FINE'
comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks