Paypal Integration

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

Paypal integration using Asp.net & how will Add or Update product details.

Introduction

In this article, we will try to understand PayPal Integration in ASP.NET with few products. And after that we will implement CRUD operation help of PayPal Account.

Objective

PayPal help us to received direct payments in our accounts from end user.

1. Login from your PayPal account, create if you don't have.
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 drop down. and check Customize Button and Add products with price which you want to show in your website, below image for your ref.


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


7.  Copy above script and paste in your web form.

Below is HTML code

<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 Screen shot


Now we will perform CRUD operation with products

1. Login in PayPal account 
2. click on profile link, below image for ref.

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


5. Then take action as per your need.

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
Regards Sandeep Raturi(Systems Analyst) Email: s.raturi89@gmail.com
http://www.dotnetfunda.com/profile/sandeepraturi.aspx
Systems Analyst

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: Jerbrown on: 2/19/2018 | Points: 25
where is it better to use?
Posted by: Robbieweeks on: 2/23/2018 | Points: 25
Is it the newest version?
Posted by: Poppynewton on: 9/12/2018 | Points: 25
Amazing, thank you!

Login to post response

Comment using Facebook(Author doesn't get notification)