简体   繁体   English

PayPal 捐赠表格在 WordPress 中不起作用

[英]PayPal donation form not working in WordPress

This form was copied directly from WordPress so the button won't work.此表单是直接从 WordPress 复制的,因此该按钮不起作用。 What I want to ask is it used to take users directly to the page that charges the amount they selected, but now it just sends them to the default PayPal login page.我想问的是,它曾经将用户直接带到收取他们选择的金额的页面,但现在它只是将他们发送到默认的 PayPal 登录页面。 I would like to find out if something got messed up in the code.我想知道代码中是否有问题。 Is there a way to find out?有没有办法找出来?

 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank"> <h1> </h1> <h1 style="text-align: center;"><span style="font-size: 36pt;"><strong><span style="font-family: Roboto;">PayPal Monthly Donation</span></strong></span></h1> <table class=" aligncenter" style="border: none; margin: 0px; padding: 0px; height: 58px;" width="848"> <tbody> <tr> <td style="border: none;"><input name="on0" type="hidden" value="" /></td> </tr> <tr> <td style="border: none;"> <p><select name="os0"> <option value="Opt10">$10.00 USD - monthly</option> <option value="Opt20">$20.00 USD - monthly</option> <option value="Opt30">$30.00 USD - monthly</option> <option value="Opt50">$50.00 USD - monthly</option> <option value="Opt100">$100.00 USD - monthly</option> </select></p> <p>&nbsp;</p> <p><input alt="PayPal - The safer, easier way to pay online:" height="50px" name="submit" src="https.//www.jtsamerica.org/wp-content/uploads/2020/06/DONATE-BUTTON.jpg" type="image" width="160" /></p> </td> </tr> </tbody> </table> </form>

It does look messed up, for various reasons.由于各种原因,它看起来确实很混乱。 You should generate new, proper button code.您应该生成新的、正确的按钮代码。 https://www.paypal.com/buttons is one of the places you can do so https://www.paypal.com/buttons是您可以这样做的地方之一

Once you have new code, use it somewhere that accepts raw HTML, and won't mangle it.一旦你有了新代码,在接受原始 HTML 的地方使用它,并且不会破坏它。 There are very many Wordpress plugins for this.为此有很多 Wordpress 插件。

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

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