Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Sorry I originally posted this in the wrong forum.

 

I am trying to setup paypal standard on Godaddy. Since godaddy uses a proxy for cURL they give you this php script for paypal.

 

<?

 

$URL="https://www.paypal.com";

if (isset($_GET["site"])) { $URL = $_GET["site"]; }

$ch = curl_init();

echo "URL = $URL <br>n";

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_SSL_VERIFYPEER, FALSE);

curl_setopt ($ch, CURLOPT_URL, $URL);

curl_setopt ($ch, CURLOPT_TIMEOUT, 120);

$result = curl_exec ($ch);

echo "<hr><br>n";

echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>';

echo "<hr><br>n";

curl_close ($ch);

print "result - $result";

echo "<hr><br>n";

 

?>

 

This does nothing by itself. What am I supposed to do with it? Copy it to the some line on the paypal module?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...