Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Payment Gateway Postback problem

    Hello!
    My enviroment: W2003 + MSSQL + PHP5 + IIS6.
    Payment Gateway: Segpay.com

    sent as .../payment/postback.php?action=Auth&purchaseid=25258400&tranid=30742324&email=techsean26%40segpay.com&TESTTRANS =1

    My postback test page is simple, coded for minimize test errors,as:
    if(isset($_GET["email"]))
    {
    if($_GET['email']==""){
    $emailcust="'A'";
    }else{
    $emailcust = $_GET['email'];
    }
    }else{
    $emailcust="nothing";
    }
    if(isset($_GET["purchaseid"]))
    {
    if($_GET['purchaseid']==""){
    $IDpurchaseCust="'B'";
    }else{
    $IDpurchaseCust = $_GET['purchaseid'];
    }
    }else{
    $IDpurchaseCust="nothing";

    }


    mssql_connect("myIP xxx.xxx.xxx.xxx", "myuser", "mypassword") or die("Server connection problems");
    mssql_select_db("mydatabase") or die("Db selection problem");

    $grava = mssql_query("INSERT INTO Transadas (email, purchaseID) VALUES('$emailcust','$IDpurchaseCust')");

    Problem:

    1) If I apply ."../payment/postback.php?action=Auth&purchaseid=25258400&tranid=30742324&email=techsean26%40segpay.com&TESTTRANS =1"
    on a browser like Internet Explorer, everything runs well and data inserted properly.

    2) When Segpay postback, the url arrived as "."../payment/postback.php" effect. Segpay support claim that they really sent the full url exactly as above, and suggest that my server cannot receive a post from another server.

    Am I missing some server/ IIS6 config detail ?

    Tks for any suggestion !

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,464
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    Is it possible that they actually used POST?

    So try $_POST with your variables, instead of $_GET


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •