Browsing all articles from July, 2010
Jul
14

Paypal Integration(3rd day)

Author admin    Category Uncategorized     Tags
1. <form action=”https://www.sandbox.paypal.com/cgi-bin/webscr” method=”post”>
form action is ”https://www.sandbox.paypal.com/cgi-bin/webscr” ,bcoz i am testing my integration is correct or not. When it is correct, change it to “https://www.paypal.com/cgi-bin/webscr”
2. <input type=”hidden” name=”cmd” value=”_xclick”>
I dont know why i had to give it sorry.
3. <input type=”hidden” name=”business” value=”abcd_1278228107_biz@yahoo.com”>
It is my paypal merchant account.
I think u can understand the purpose of other input
<input type=”hidden” name=”custom” value=”<?php echo $_SESSION['username'];?>”>
to get the username to my IPN handler i hav written this.
Any question?
No? good.
Jul
8

Paypal Integration(2nd day)

Author admin    Category Uncategorized     Tags

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. :)
Jul
7

Paypal Integration(1st day)

Author admin    Category Uncategorized     Tags

Yap, atlast i have integrated my project to paypal. Its easy but need some guidence.

For my project scenario is -

  1. Client will login to my page
  2. They put the quantity of products
  3. And click buy now button
  4. 1 notification(IPN) will come to me(Site Admin).
  5. 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

Flickr Photostream
logo_elegentlogo_monochromiclogo_structure_alphabets_aralmost-final-with-axis
ADSENSE Test