in

AlertPay Developers Community

Here is what I'm trying to get to work

Last post 01-05-2009 9:16 PM by rkdallas. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-03-2009 7:44 PM

    Here is what I'm trying to get to work

     This is a Perl Script for a subscription.

    The script works as far as admin and members areas but I cannot get it to work with the IPN.

    It is not reading the ap_securitycode and giving me access denied

    This is how the ap_securitycode variable is declared in the config script 

    $alertpaysecretword = "xxxxxxxxxxxxxxxx";                      (my actual code is where the xxxs are)

    This is where it is checking for the ap_securitycode.

    if (($purchase_status eq "SUCCESS")&&($alertpaysecretword eq "$ap_securitycode")){
    $paidmembership = "1";
    $user_status = "Paid Membership";
    }


    elsif (($purchase_status ne "SUCCESS")&&($alowfree eq "1")){
    $paidmembership = "0";
    $amount = 0;
    $user_status = "Free Membership";
    }


    else {
     print $q->header;
     print("<br><br><h2><center>Access Denied</center></h2>");
     exit;
    }

     

  • 01-05-2009 12:19 PM In reply to

    Re: Here is what I'm trying to get to work

    Where in your PERL code do you fetch the data from the POST? You would need to get them first before continuing with your IF statements.

    The variable names for the status and security code in our IPN post data is : ap_status & ap_securitycode 

    ***This is a Developers Forum, any other questions should be addressed to our Customer Support department or you can find the answers in our FAQ page.***
  • 01-05-2009 9:16 PM In reply to

    Re: Here is what I'm trying to get to work

    Are there any PERL sample scripts for AlertPay Integration?

Page 1 of 1 (3 items)

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