Tuesday, 15 January 2013 13:55

using online paypal buy button for paypal payment

Written by 
Rate this item
(0 votes)

you can use online paypal buy button in your page
for receiving online paypal payment.when users click
this buy button they will enter in payment page
for payment.

the following codes shows how to use
paypal payment in a page with paypal buy button when
the page is inherited from masterpage.

<div id="buy" runat="server">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="This email address is being protected from spambots. You need JavaScript enabled to view it." />
<input type="hidden" name="item_name" value="Message_Encryption" />

<input type="hidden" name="cancel_return" value="http://www.csharpersworld.com/Home.aspx" />

<input type="hidden" name="custom" value="<%=UserId %>" />

<asp:HyperLink ID="buyButton" NavigateUrl="javascript:theForm.__VIEWSTATE.value='';
theForm.encoding='application/x-www-form-urlencoded';theForm.action=
'https://www.paypal.com/cgi-bin/webscr';theForm.submit();" ImageUrl="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" runat="server">

Read 1437 times
Super User

Email This email address is being protected from spambots. You need JavaScript enabled to view it.
Login to post comments