Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.. friends, I am using pay pal first time in my web application my application is working is very well. while I am testing for just one item only. but I want to use purchase more then items at single time. like cart.

So can anybody please tell how can i achieve this.

my code is given below:
ASP.NET
<form id="form1" runat="server" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
   <div>
       <asp:Image ID="Image1" runat="server" Height="154px" ImageUrl="~/bike.jpg"
           Width="284px" />
       <br />
       Name :
       <asp:Literal ID="ltr_bikename" runat="server"></asp:Literal>
       <br />
       Price :
       <asp:Literal ID="ltr_bikeprice" runat="server"></asp:Literal>
       <br />
       <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/button.gif"
           onclick="ImageButton1_Click" />
           <input type="hidden" name="cmd" value="_xclick" />
   <input type="hidden" name="business" value="*********@gmail.com" />

   <input type="hidden" name="item_name" value="<% Response.Write(ltr_bikename.Text.ToString()); %>" />
   <input type="hidden" name="amount" value="<%  Response.Write(ltr_bikeprice.Text.ToString()); %>" />
   <input type="hidden" name="shipping" value="3.00" />
   <input type="hidden" name="handling" value="2.00" />
   </div>
   </form>
Posted

1 solution

Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from reputable card transaction service companies - the scope for fraud otherwise is far to large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900