Simple HTML Paypal Integration Form

---- sample code code -----
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_cart">
  <input type="hidden" name="upload" value="1">
  <input type="hidden" name="business" value="accountemail@abcde.com">

  <input type="hidden" name="item_name_1" value="Order# <%=oid%>">
  <input type="hidden" name="amount_1" value="0"> <!-- must have it. need hold order number -->


<% 
''loop through rest items 
  dim i
  ''start at 2, first index =1 is already used for for order id,
  For i = 2 to session("itemcnt_session")+1
    dim item_name, item_price
    item_name = "ID " + cartArray(cProdId, i-2) + ", " + cartArray(cProdName, i-2) + " (" + cartArray(cNotes, i-2) + ")"
    item_price= cartArray(cprice, i-2)
%> 
    <%=item_name%> $<%=item_price%> x <%=session("cart_session")(cQty, i-2)%><br>
    <input type="hidden" name="item_name_<%=i%>" value="<%=item_name%>">
    <input type="hidden" name="amount_<%=i%>" value="<%=item_price%>"> 
    <input type="hidden" name="quantity_<%=i%>" value="<%=session("cart_session")(cQty, i-2)%>">
  <% Next %>

  <input type="hidden" name="address1" value="12345 Street">
  <input type="hidden" name="address2" value="unit 123">

  <input type="hidden" name="no_shipping" value="1"> <!-- required -->
  <input type="hidden" name="no_note" value="0"> <!-- not prompt note field -->
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="lc" value="US">
  <input type="hidden" name="bn" value="PP-BuyNowBF">
  <input type="hidden" name="cancel_return" value="http://yourweb.com">
  <input type="hidden" name="return" value="http://yourweb.us/displaythanks.asp">

  <!-- pass all order and payment variables back to the "return" page above as post. 
       Paypal has warning message if the return page is not https. Not suggest to use it! -->
  <input type="hidden" name="rm" value="2"> 
  <input type="hidden" name="custom" value="<%=oid%>"> <!-- value return back, not saved in Paypal -->

  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
  <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></p>
</form>
--- sample code end -----

Same sample and question links.

 

sample 1

question 1

question 2

 

Paypal document