Please check my paypal ipn code

Discussion in 'PHP' started by tvshock, Dec 3, 2009.

  1. #1
    hello

    anybody please take a look this code. if it's has some code to add to make it more safe or has any error. please help me.

     
    tvshock, Dec 3, 2009 IP
  2. kingsoflegend

    kingsoflegend Well-Known Member

    Messages:
    202
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #2
    What's the purpose of the foreach right at the beginning?
     
    kingsoflegend, Dec 3, 2009 IP
  3. tvshock

    tvshock Peon

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    foreach ($_POST as $key => $value) {
    $value = urlencode(stripslashes($value));
    $req .= "&$key=$value";
    }

    $request = addslashes(urldecode($req));

    this code is to get all value that paypal sent to sent back to paypal.
     
    tvshock, Dec 3, 2009 IP