Skip to content

Commit

Permalink
fix validate
Browse files Browse the repository at this point in the history
  • Loading branch information
maksa988 committed Jan 15, 2019
1 parent 20d7d23 commit e3b9f61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Traits/CallerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function callSearchOrder(Request $request)
if(is_null(config('freekassa.searchOrder')))
throw new InvalidSearchOrder();

return App::call(config('freekassa.searchOrder'), [$request, $request->input('MERCHANT_ORDER_ID')]);
return App::call(config('freekassa.searchOrder'), [$request->input('MERCHANT_ORDER_ID')]);
}

/**
Expand All @@ -34,6 +34,6 @@ public function callPaidOrder(Request $request, $order)
if(is_null(config('freekassa.paidOrder')))
throw new InvalidPaidOrder();

return App::call(config('freekassa.paidOrder'), [$request, $order]);
return App::call(config('freekassa.paidOrder'), [$order]);
}
}
6 changes: 3 additions & 3 deletions src/Traits/ValidateTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public function validateSignature(Request $request)
*/
public function validateOrderFromHandle(Request $request)
{
return (! $this->AllowIP($request->ip())
|| ! $this->validate($request)
|| ! $this->validateSignature($request));
return ($this->AllowIP($request->ip())
&& $this->validate($request)
&& $this->validateSignature($request));
}
}

0 comments on commit e3b9f61

Please sign in to comment.