Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>An identical question was posed <a href="http://www.webmasterworld.com/forum88/5375.htm" rel="nofollow">here</a> and should give you the answers you need. If you need clarification please comment.</p> <p>To quote that answer, it involves submitting data to your PHP, then using a socket request to send that data to PayPal:</p> <pre><code>function post($host, $path, $data) { $http_response = ''; $content_length = strlen($data); $fp = fsockopen($host, 80); fputs($fp, "POST $path HTTP/1.1\r\n"); fputs($fp, "Host: $host\r\n"); fputs($fp, "Content-Type: application/x-www-form-urlencoded\r\n"); fputs($fp, "Content-Length: $content_length\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fputs($fp, $data); while (!feof($fp)) $http_response .= fgets($fp, 28); fclose($fp); return $http_response; } $postdata = '?foo=bar'; foreach($_POST as $key =&gt; $val) $postdata .= '&amp;'.$key.'='.$val; </code></pre> <p><strong>Important Notes:</strong> I copied that code from the thread I linked, so check it out for more information. Also, this will submit to your PHP. You'll need to redirect the user to that POST request if you want them to actually view the PayPal page.</p> <p>Moreover, it seems like you might benefit from using PayPal's Instant Payment Notification feature. This essentially calls back a URL of your choosing with all of the payment information. I found <a href="http://net.tutsplus.com/tutorials/php/using-paypals-instant-payment-notification-with-php/" rel="nofollow">this tutorial</a> immensely helpful in learning how to do this in PHP.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload