Paypal Integration

Sandeepraturi
Posted by in ASP.NET category on for Beginner level | Points: 250 | Views : 4689 red flag

Paypal integration with asp.net & add products and edit products details

Introduction

In this article, we will try to understand Paypal Integration in ASP.NET with few products.

Objective

Learn how we can implement Paypal on our websites. we can received direct payment from users help of paypal.


1. Create your paypal account, if you don't have and login with your account
2. Now create Buy Now Button. click this link (https://www.paypal.com/in/cgi-bin/webscr?cmd=_singleitem-intro-outside)
3. Click on create button now .
4. select Buy Now from dropdown. and check Customise Button and add products and price, like below image


5. Click on Done.
6. Then click on Create button


7.  Copy this script and past your webform.


Using the code


Put this code your html page
<body>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="NXQDHQ9ZD3P7Q">
<table>
<tr><td><input type="hidden" name="on0" value="Select Products">Select Products</td></tr><tr><td><select name="os0">
	<option value="Due">Due $2.00 USD</option>
	<option value="HP Laptop">HP Laptop $6.00 USD</option>
	<option value="Sony Tab">Sony Tab $10.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

</body>

Output


Now we will learn how we will Add , Edit & update Prdoucts

1. Login your paypal account 

2. click on profile link, look below image

3. click My Selling Tools
4. Inside of selling online, click on  paypal button update option


5. Then Take action & do add , Update & Delete your products

Thanks :)

Page copy protected against web site content infringement by Copyscape

About the Author

Sandeepraturi
Full Name: Sandeep Raturi
Member Level: Starter
Member Status: Member
Member Since: 2/28/2012 10:43:45 AM
Country: India
Thanx With Best Regards Sandeep Raturi(software engineer) Email: s.raturi89@gmail.com
http://www.dotnetfunda.com/profile/sandeepraturi.aspx
Software Engineer

Login to vote for this post.

Comments or Responses

Posted by: Sheonarayan on: 3/23/2014 | Points: 25
Good one, keep it up!
Posted by: Sandeepraturi on: 3/23/2014 | Points: 25
Thank you sir

Login to post response

Comment using Facebook(Author doesn't get notification)