Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You need something like this? I got it out of the PayPal docs awhile back. I'm using it in a production app now. Please test before using though :)</p> <pre><code>&lt;form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" style="margin:4px 0px 0px 4px;"&gt; &lt;input type="image" src="&lt;ADD_TO_CART_BUTTON&gt;.jpg" border="0" name="submit" alt="Add this item to your shopping cart"&gt; &lt;img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"&gt; &lt;input type="hidden" name="add" value="1"&gt; &lt;input type="hidden" name="cmd" value="_cart"&gt; &lt;input type="hidden" name="business" value="&lt;YOUR_PAYPAL_EMAIL&gt;"&gt; &lt;input type="hidden" name="item_name" value="&lt;THE_ITEM_NAME&gt;"&gt; &lt;input type="hidden" name="item_number" value="&lt;THE_ITEM_NUMBER_SKU_OR_WHATEVER&gt;"&gt; &lt;input type="hidden" name="amount" value="&lt;HOW_MUCH_IT_COSTS&gt;"&gt; &lt;input type="hidden" name="no_shipping" value="1"&gt; &lt;input type="hidden" name="cn" value="&lt;CUSTOM_TEXT_FOR_THE_BUYER_TO_LEAVE_YOU_SPECIAL_INSTRUCTIONS&gt;"&gt; &lt;input type="hidden" name="currency_code" value="USD"&gt; &lt;input type="hidden" name="lc" value="US"&gt; &lt;input type="hidden" name="bn" value="PP-ShopCartBF"&gt; &lt;input type="hidden" name="address_override" value="1"&gt; &lt;input type="hidden" name="business_cs_email" value="&lt;YOUR_PAYPAL_EMAIL&gt;"&gt; &lt;input type="hidden" name="return" value="&lt;WHERE_TO_TAKE_THE_USER_AFTER_PURCHASE_LIKE_thankyou.html&gt;"&gt; &lt;input type="hidden" name="notify_url" value="&lt;IF_YOU_PROCESS_ORDERS_THROUGH_YOUR_SITE_THE_CALLBACK_URL_GOES_HERE&gt;"&gt; &lt;/form&gt; </code></pre> <p>You'll need one of these for each item you're selling.</p> <p>Signup at <a href="http://sandbox.paypal.com" rel="noreferrer">http://sandbox.paypal.com</a> and start working in their sandbox to try this out.</p> <p>Also check out <a href="http://www.x.com" rel="noreferrer">http://www.x.com</a> and <a href="https://www.paypal-labs.com/" rel="noreferrer">http://www.paypal-labs.com</a>. They've been doing some cool stuff with checkouts.</p>
 

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