如何过去为贝宝按钮嵌入 html 表单 asp.net [英] How to get past embedding a html form for paypal buttons asp.net

查看:22
本文介绍了如何过去为贝宝按钮嵌入 html 表单 asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些在 asp.net 网站上使用 paypal 的经验,但是这个问题让我很困惑.

I have some experience of using paypal with an asp.net website, however this issue has me really stumped.

问题的根源:您无法在页面表单中嵌入 paypal 按钮的 html 表单.

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 页面绘制不同的 ascx 控件.这意味着我无法在页面周围排列表单标签,因此需要解决.

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.

注意.我到处寻找简单的解决方案,但那里是一片丛林,paypal 是一场噩梦.我确实在 ghost form 全部在 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.

这样您就可以将所有内容保留为单个表单的一部分,并在 PayPal 输入和验证方面增加一点稳健性.

That way you can keep everything as part of a single form and add a little more robustness around the PayPal input and validation.

PayPal:SDK 和下载

这篇关于如何过去为贝宝按钮嵌入 html 表单 asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆