in

AlertPay Developers Community

ap_returnurl $_POST vars are empty

Last post 08-21-2008 8:26 AM by postzero. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-20-2008 3:58 PM

    ap_returnurl $_POST vars are empty

    This is my ap_returnurl PHP file:

    <?php
    $myFile = "text.txt";
    $fh = fopen($myFile, 'w') or die("can't open file");
    $stringData = $_POST['ap_merchant'];
    fwrite($fh, $stringData);
    fclose($fh);
    print_r($_POST);
    ?>

    ... text.txt (chmod 777) is empty, and print_r shows nothing but "Array()",
    ap_returnurl address is not an alias, it is real web address.

    Why $_POST is empty?

    Filed under: ,
  • 08-20-2008 5:25 PM In reply to

    Re: ap_returnurl $_POST vars are empty

    Please try my debugger tool and post me the debug.txt file

    http://dev.alertpay.com/forums/p/1710/4094.aspx

  • 08-20-2008 5:33 PM In reply to

    Re: ap_returnurl $_POST vars are empty

    Hi, 

    IPN is posted to your Alert Url and not return url.

    I see that it is being sent from AlertPay to your Alert Url. I will pm you an example.

    Please try the above test in your file which you have for your AlertUrl [ok.php but in folder,  include],  if you still do not see anything, try commenting everything in the file [ok.php in include folder] and run the test.

    Also, make sure that your alerturl code is in the correct ok.php file.

    - Sadaf

  • 08-21-2008 8:26 AM In reply to

    Re: ap_returnurl $_POST vars are empty

    The reasons of empty $_POST were:
    1) Alert URL from my Alertpay account was not correct;
    2) Alert URL from my Alertpay account was equal to ap_returnurl.

    I have changed Alert URL to correct address and ap_returnurl to other address.

    The addresses are different - and I see $_POST.
Page 1 of 1 (4 items)

  AlertPay - Verified by Visa AlertPay - secure credit card and checking services BBBOnline Reliability Program