Пример #1
0
 /**
  * Constructor for initialize Paypal.
  */
 public function __construct()
 {
     // Get Cart in Container
     $this->cart = App::make('App\\Http\\Cart\\Cart');
     $this->_apiContext = Paypal::ApiContext(config('services.paypal.client_id'), config('services.paypal.secret'));
     $this->_apiContext->setConfig(['mode' => 'sandbox', 'service.EndPoint' => 'https://api.sandbox.paypal.com', 'http.ConnectionTimeOut' => 30, 'log.LogEnabled' => true, 'log.FileName' => storage_path('logs/paypal.log'), 'log.LogLevel' => 'FINE']);
 }
Пример #2
0
 public function __construct()
 {
     $this->_apiContext = Paypal::ApiContext(config('services.paypal.client_id'), config('services.paypal.secret'));
     $this->_apiContext->setConfig(array('mode' => 'sandbox', 'service.EndPoint' => 'https://api.sandbox.paypal.com', 'http.ConnectionTimeOut' => 30, 'log.LogEnabled' => true, 'log.FileName' => storage_path('logs/paypal.log'), 'log.LogLevel' => 'FINE'));
 }