The minimalistic order form:
<form action=”https://www.sandbox.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_xclick”>
<input type=”hidden” name=”business” value=”abcd_1278228107_biz@yahoo.com”>
<input type=”hidden” name=”item_name”
value=”abcdaNow Service”>
<input type=”hidden” name=”item_number” value=”1″>
<input type=”hidden” name=”amount” value=”3″>
<!– <input type=”hidden” name=”tax” value=”1″>–>
<input type=”hidden” name=”quantity” value=”1″>
<input type=”hidden” name=”no_note” value=”1″>
<input type=”hidden” name=”currency_code” value=”USD”>
<!– Enable override of payer’s stored PayPal address –>
<input type=”hidden” name=”address_override” value=”1″>
<!– Set prepopulation variables to override stored address –>
<input type=”hidden” name=”address_name” value=”safaruque”>
<input type=”hidden” name=”first_name” value=”john pancraft”>
<input type=”hidden” name=”last_name” value=”last sent”>
<input type=”hidden” name=”notify_url” value=”http://www.abcd.com/ipn/ipn.php”>
<input type=”hidden” name=”return” value=”http://www.adbc.com/success.php”>
<input type=”hidden” name=”cbt” value=”Continue >>”>
<input type=”hidden” name=”custom” value=”<?php echo $_SESSION['username'];?>”>
<input type=”image” name=”submit” border=”0″
src=”https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif”
alt=”PayPal – The safer, easier way to pay online”>
</form>
Wanna explanation? which <input> is for what?
–Give comments or i will publish automatically.
Yap, atlast i have integrated my project to paypal. Its easy but need some guidence.
For my project scenario is -
- Client will login to my page
- They put the quantity of products
- And click buy now button
- 1 notification(IPN) will come to me(Site Admin).
- I will store the info(user_name, amount) to DB.
Thats it.
I have made a order form given in next post. Now i m busy. :p:p:p:p:p
From yesterday i started learning Drupal (word meaning: Drop of Water, Actually a CMS). I have got a book of [PACKT] Publication by David Mercer. and a e-book pro Drupal Development –John K. VanDyk.
I am thinking to learn Illustrator. As a web programmer it is not must to learn Adobe Illustrator, but if u know the illustrator u can make the logo. It will reduce not only the cost of ur project but also the precious time. So need to learn the tool. I think it will not take so much time from me
