Skip to content

Commit

Permalink
Use merge, instead of foreach loop. (#67)
Browse files Browse the repository at this point in the history
Use merge, instead of foreach loop
  • Loading branch information
dann95 authored and srmklive committed Dec 14, 2016
1 parent ad830d8 commit adabbd3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Traits/IPNResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ trait IPNResponse
*/
public function postNotify(Request $request)
{
$post = [];
$request_params = $request->all();

foreach ($request_params as $key => $value) {
$post[$key] = $value;
}

$post['cmd'] = '_notify-validate';

$request->merge(['cmd' => '_notify-validate']);
$post = $request->all();
$response = $this->verifyIPN($post);

session([
Expand Down

0 comments on commit adabbd3

Please sign in to comment.