开发者

Pay pal postback question

Hope some one can answer my question.

I am developing a web page with a paypal "Buy Now" button. The code for the page is as shown below

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
开发者_StackOverflow<html lang="en-US" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
...
<div id="content">
    @RenderBody()    

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post"  >
    <input type="hidden" name="..." value="..."/>
    <input type="hidden" name="..." value="..."/>
    <input type="image" src="..." border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
    <img alt="" border="0" src="..." width="1" height="1"/>
    </form>    
</div>
<div id="footer2">...</div>

</html>

when the user clicks the "Buy Report" button he is taken to a whole new page to paypal web site away from my web site. What I am trying to achieve is when the user clicks the "Buy Report" I want to show the paypal page with in my web page

I am using ASP.NET MVC3. Can it be done? Please help


I would advise "going with the flow" of PayPal by not using an IFrame. There is a configurable option in PayPal to return to your site also.


You would need to put this form inside an iframe if you want the user to stay on your page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜