Exemple #1
0
 public function auto_response(Request $request)
 {
     //the user might not had clicked on return to store button
     //so let's do the transaction link if needed
     $datas = Order::generateResponse($request);
     if ($datas['response_code'] === "00") {
         $order = Order::find($datas['order_id']);
         $this->datas['order'] = $order;
         if ($order->transaction_id === null) {
             $order->createTransaction($datas);
         }
     }
 }
Exemple #2
0
 public static function boot()
 {
     parent::boot();
     $observer = \App::make('LaravelSipsOrderObserver');
     Order::observe(new $observer());
 }