amember to a new domain, paypal ipn problems, losing lot of money, please help ASAP

Discussion in 'Payments processing' started by rajprince, Aug 10, 2012.

  1. rajprince

    rajprince New Member

    Joined:
    Aug 11, 2011
    Messages:
    13
    Hi,

    I have shifted my amember to a new domain , for old recurring paypal payments, i used the following code for old amember ipn as told by support team.

    <?php
    $url = "http://www.your_domain_name.com/amember/plugins/paynment/paypal_r/ipn.php"; //adjust an URL here
    $vars = ($_SERVER['REQUEST_METHOD'] == 'POST') ? $_POST : $_GET;
    $vars1 = array();
    foreach ($vars as $kk=>$vv){
    $v = urlencode($vv);
    $k = urlencode($kk);
    $vars1[] = "$k=$v";
    }
    $vars1 = join('&', $vars1);
    $response = implode('', file($url . "?" . $vars1));
    ?>



    Now this is not working , in the access logs , it says:

    /amember/plugins/payment/paypal_r/ipn.php?test_ipn=1&paym...
    paypal_r ERROR: IPN validation error: Paypal claims it is not-valid IPN transaction: [INVALID]



    I really need your help here ASAP..
    I am losing a lot money already due to this.


    Thanks.

Share This Page