简体   繁体   English

PayPal捐赠按钮无法正确提交/重定向Internet Explorer 8和9?

[英]PayPal donate button not submitting/redirecting properly internet explorer 8 and 9?

At http://dev.respectfulrevolution.org/you we have three PayPal donate "buttons"/forms that all work fine in all tested browsers except for IE8 and IE9. http://dev.respectfulrevolution.org/上,我们有3个PayPal捐赠“按钮” /表单,这些表单在所有经过测试的浏览器(IE8和IE9除外)上都可以正常工作。 Instead of PayPal redirecting you to the appropriate donation page, it redirects you to the PayPal home/login page with a message telling you to login first. 它不会将您重定向到贝宝的首页/登录页面,而是显示一条消息,提示您先登录,而不是将贝宝重定向到适当的捐赠页面。 After you login, it tells you the link is outdated and you never get to the donation page. 登录后,它告诉您链接已过期,并且您永远也不会进入捐赠页面。

Ideas? 有想法吗? You can also see the production version at http://www.respectfulrevolution.org/you . 您也可以在http://www.respectfulrevolution.org/you上看到正式版。

Oh the embarrassment. 不好意思 Turns out this had nothing to do with IE8/9 or PayPal. 事实证明,这与IE8 / 9或PayPal无关。 Instead, I was submitting a form to PayPal without the necessary data for what the hosted_button_id was, what the cmd was, etc, etc. When I looked into the issue on IE8/9, I noticed that my hidden form inputs that were to contain this data were blank. 取而代之的是,我向PayPal提交了一个表单,其中没有关于hosted_button_id是什么,cmd是什么等的必要数据。当我在IE8 / 9上调查此问题时,我注意到隐藏的表单输入包含该数据为空白。 What gives and why only on IE8/9? 有什么用,为什么只有IE8 / 9?

Well, this is the embarrassment. 好吧,这是尴尬。 I have a function that is run only if the form input attribute placeholder isn't supported and of tested browsers, IE8/9 were the only ones not to support. 我有一个仅在不支持表单输入属性占位符并且在经过测试的浏览器中才运行的功能,IE8 / 9是唯一不支持的功能。 In my placeholder fallback function I had sloppily targeted all form inputs and basically blanked out the values. 在我的占位符后备功能中,我草率地将所有表单输入作为目标,并基本上消隐了这些值。

So all in all, the problem was in my code. 总而言之,问题出在我的代码中。 However, others who have similar symptoms should ensure that they are submitting all the necessary data to PayPal, others you may end up on the home page with a small error message. 但是,其他具有类似症状的人应确保将所有必要的数据提交给PayPal,而其他人则可能会在主页上看到一条小错误消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM