PayPal is the most popular and secured for online payment mechanic, it also gives you an opportunity to integrated PayPal to your own website for get paid from your customers as well.
To do so , you'll need to write lines of code, you need to learn more about its API and sit at your desk for couples of hours to learn about its process.
It's really complicated and very hard if you are just a starter developer and want to integrated PayPal payment accepted in your own website.
Here I recommend you the new ASP.NET Control, It's ASP.NET PayPal Control for Website Payments Standard .
With this Control, it's just a small .DLL file but will help you big, all complex things are built in to this one single DLL file.
It provide the easy to use wizard for you to play with.
It supports Buy Now Button , Donation Button, Add to Cart Button, Subscription Button and even more...
ASP.NET PayPal Control for Website Payments Standard brought to you by SpiceLogic Consulting & Technologies INC., A Canadian Federal Incorporation.
You can get it for free from here: Download a free to try
Please note in this review I don't describe much details for this product. For more details, you may go to SpiceLogic Website.
Here I'll show you on how to Create a very very simple Ecommerce payment website in ASP.NET3.5.
First of all you'll need to download the ASP.NET PayPal Control for Website Payments Standard
After you have finished download it, just double click and install it.
Now you'll need to add this control to your Visual Studio 2008 Tool box, if you are familiar with this, you may skip it and move to the next step:
To add This Control to your Visual Studio.NET Toolbox, please Run Visual Studio 2008, and Create a Sample Website by go to File > New Web Site

Now go to your Toolbox ( Located on the Left side ) and Right Click on it and Select Add Tab and give your Tab a name and then Right Click on it again and select Choose Items...
And the Choose Toolbox Items will appear as below, now click on browse and go to your located directory of the installation folder that you just installed, normally it is located in "C:/Program Files/ASP.NET PayPal Control for Website Payments Standard/Publish/Core DLL"

Now you'll see a file name " SpiceLogicPayPalStd.dll ", Select it and click OK, and OK.

Okay, Now you're done the first step of adding the control to your toolbox, next time you will not need to do this again unless you do the new installations.
Now is the hot step of adding this control to work in your web application.
I may assume that you have created a new website as above and now create a new Table that has 2 columns and 5 rows in your page, and Add Label , Text Box and Button in to your Table Columns, after you have drag and drop all that control in to your table, please the last important thing is "SpiceLogicPayPalStd", So Drag it in to anywhere in your page and set its property Visible to "false" and add your Business E-mail (It's the PayPal Account that you'll recieve the payment ).
The codes look like below:
|
<table class="style1">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="Product Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="txt_name" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="Price/Item"></asp:Label>
</td>
<td>
<asp:TextBox ID="txt_Price" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label3" runat="server" Text="Quantity"></asp:Label>
</td>
<td>
<asp:TextBox ID="txt_Quantity" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label4" runat="server" Text="Shipping Cost"></asp:Label>
</td>
<td>
<asp:TextBox ID="txt_Shipping" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<cc1:SpiceLogicPayPalStd ID="SpiceLogicPayPalStd1" runat="server" Visible="false" BusinessEmail="sell_1222241245_biz@hotmail.com "
z_ignore="10/2/2008 3:30:35 PM">
</cc1:SpiceLogicPayPalStd>
</td>
<td>
<asp:Button ID="Paynow" runat="server" Text="Paynow" onclick="Paynow_Click" />
</td>
</tr>
</table> |
After you have done this simple drag and drop, what you need to do next is to write some lines of code to make it run.
just Double click on your Paynow Button and give it a function as below :
|
Protected Sub Paynow_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Paynow.Click
Dim Price As Integer = Me.txt_Price.Text
Dim Quantity As Integer = Me.txt_Quantity.Text
Dim Shipping As Integer = Me.txt_Shipping.Text
SpiceLogicPayPalStd1.PayPalItemInfo.Amount = Price
SpiceLogicPayPalStd1.PayPalItemInfo.Quantity = Quantity
SpiceLogicPayPalStd1.PayPalItemInfo.Shipping = Shipping
SpiceLogicPayPalStd1.PayPalItemInfo.ItemName = Me.txt_name.TextSpiceLogicPayPalStd1.Submit()
End Sub |
and after you have done this, Please don't forget to save it ( Ctrl + S ).
That's all., So simple, Please Stop, Before you press F5, please add a file name "slPPWPSICtrlForm4357.aspx" this file is require by SpiceLogicsPalStd.dll in order to make it work, this file is located within the installed Directory ", Normally " C:/Program Files/ASP.NET PayPal Control for Website Payments Standard/Publish/Core DLL "
To add this file to your project , simply by just Right Click on your Project in the Solution Explorer and select add Existing Item...
when the browse windows come up, just go to your installed directory and add "slPPWPSICtrlForm4357.aspx" to you project by click OK,
Okay, Now you're really done, Just Press F5 and you webpage will show up and fill in that form and clock pay now, so you'll be direct to Paypal website with your payment detail.
***Please not since this example is just for Paypal Sandbox testing only, so you'll need to register a Paypal Sanbox account and login in order to see the payment page.
This tutorial is just a very very simple one, and the more powerful of this control, you can download it and start play around with it.
Source Code Avialable here