Asp pages and paypal button

I have an asp.net page in 3.5 in which I have a button for paid access, but when I click the button, it just refreshes the page. I think I need to encapsulate the paypal button in something so that it does not start the update, but arrives at the recipient.

Does anyone know a solution? Can I use updatePanel or iframe?

+3
source share
3 answers

I had the same problem, I just used the following code for my button:

<asp:ImageButton ID="btnPayNow" runat="server" ImageUrl="~/images/Purchase/payNowButton.jpg" PostBackUrl="https://www.paypal.com/cgi-bin/webscr"/>

Hope this helps!

+4
source

Paypal pay now, paypal, . ASP.Net , , . , PayPal, asp.net, : -

<input type="hidden" name="cmd" value="_s-xclick"/> To order the item name for £99 <input type="hidden" name="hosted_button_id" value="note to programmer-this value is generated by paypal"/> <asp:ImageButton ID="Button2" runat="server" PostBackUrl="https://www.paypal.com/cgi-bin/webscr" ImageUrl="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" ImageAlign="AbsBottom" />

, , , - .

, , . http://www.blackbeltcoder.com/Articles/ecommerce/quick-and-dirty-buy-now-buttons-in-asp-net

+2

PayPal. samples PayPal ASP.NET.

0

Source: https://habr.com/ru/post/1740037/


All Articles