如何让过去嵌入贝宝按钮asp.net HTML表单 [英] How to get past embedding a html form for paypal buttons asp.net
问题描述
我已经使用贝宝有一个asp.net网站的一些经验,但是这个问题我来说真的难住了。
I have some experience of using paypal with an asp.net website, however this issue has me really stumped.
问题的根源:你不能嵌入HTML表单的页面表单里面的PayPal按钮
Root of the problem: You cant embed the html form for the paypal button inside your page form.
原液:本来我的网站使用多个aspx页面,所以我可以简单地安排我的表单标签,使他们没有嵌入到另一个。
Original solution: Originally my website was using multiple aspx pages so I could simply arrange my form tags so that they weren't embedded inside one another.
我的网站现在使用它绘制在不同的ASCX控制主机aspx页面。这意味着我并没有安排页面各处表单标签所以需要一个变通的选项。
My website now uses a master aspx page which draws in different ascx controls. This means that I do not have the option of arranging the form tags around the page so need a work around.
NB。我到处都找过了简单的解决方案的地方,但它是一个丛林在那里,贝宝是一场噩梦。我发现在鬼表东西这是所有在C#。可以帮助...
NB. I have looked all over the place for simple solutions but it is a jungle out there, paypal is a nightmare. I did find something on ghost form which is all in c#. Might help...
在此先感谢您的帮助......
Thanks in advance for any help....
推荐答案
使用它们的API,而不是直接提交表单将其提交PayPal的信息。
Submit the PayPal information using their APIs rather than submitting a form directly to them.
这样,你可以把一切都为单一形式的一部分,周围添加贝宝输入和确认多了几分稳健性。
That way you can keep everything as part of a single form and add a little more robustness around the PayPal input and validation.
<一个href=\"https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks\"相对=nofollow>贝宝:SDK和下载
这篇关于如何让过去嵌入贝宝按钮asp.net HTML表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!