Пример #1
0
 public function test()
 {
     $paypalService = new PaypalPaymentService();
     $task = new \stdClass();
     $task->id = 12;
     $task->title = 'Task example title';
     $task->total = 50.25;
     try {
         $url = $paypalService->getPayTaskUrl($task);
     } catch (\Exception $e) {
         Log::error('PayPal Error ' . $e->getMessage());
         abort(404);
         return false;
     }
     echo $url;
     die;
 }