PHP Real Estate Classifieds: Classifieds, FSBO, Agents


Authorize net AIM and Godaddy Hosting

Any user that host with Godaddy.com may be experancing a timout when
submitting a credit card payment with the Authorize.net AIM module.

Cause:

The PHP cURL modules on Godaddy servers need to be configured to use a
their proxy. The PHP cURL modules are used to safely fetch/communicate
with 3rd party services. E.g. Authorize.net, Yahoo Weather, Google
news RSS, etc.....

Solution:

  1. Open /content/gateways/authorizenetaim.php
  2. Find the following code segment:

    $ch = curl_init($auth_net_url);

    curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header
    info from response
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data
    instead of TRUE(1)
    curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use
    HTTP POST to send form data
    ### curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this
    line if you get no gateway response. ###
    $resp = curl_exec($ch); //execute post and get results

    curl_close ($ch);


  3. Replace code segment above with:

    //Godaddy CURL modification
    $URL = $auth_net_url;
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_VERBOSE, 1);
    curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
    curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net: 3128");
    curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1)
    curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use HTTP POST to send form data
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt ($ch, CURLOPT_URL, $URL);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
    $resp = curl_exec ($ch);
    curl_close ($ch);

  4. Save an upload file over older version
Sub-Pages (0):
Comments (0)
Add Comment
* Fields are required. All comments are reviewed for spam before being posted.
Name*
Email* (email will not be displayed online)
Image
Image Text* (case sensitive)
Comment*
I agree to website terms and conditions

(IP Address: 38.107.191.97)