Skip to content

Commit

Permalink
No needed foreach in readme.. (#66)
Browse files Browse the repository at this point in the history
* No needed foreach in readme..
  • Loading branch information
dann95 authored and srmklive committed Dec 14, 2016
1 parent c645938 commit ad830d8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,8 @@ Suppose you have set IPN URL to **http://example.com/ipn/notify/** in PayPal. To
*/
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);

Expand Down

0 comments on commit ad830d8

Please sign in to comment.