简体   繁体   English

贝宝捐赠按钮-如何删除“定期捐赠(每月)”选项?

[英]PayPal Donation Button - How can I remove the 'recurring donation (monthly)' option?

I've included a PayPal donate button on my website. 我在我的网站上添加了贝宝捐赠按钮。

When visitors click through, they are sent to a PayPal page where they can log in and input their donation amount. 访客单击后,将被发送到PayPal页面,在此页面上他们可以登录并输入捐赠金额。

However, they are also given the option to make their donation a monthly recurrence. 但是,他们还可以选择每月重新捐赠一次。 This isn't really suitable for our site and I wondered how I could remove the tick box? 这确实不适用于我们的网站,我想知道如何删除复选框?

Image here: http://imgur.com/gYwBHhL 图片在这里: http : //imgur.com/gYwBHhL

PayPal suggested that if I wanted to remove an option from the button, I 'would need to edit the html code so that the option is taken out and no longer available' to my visitors. PayPal建议,如果我想从按钮中删除选项,则“我需要编辑html代码,以使该选项被取出并不再对我的访问者可用”。

The unprotected code reads as follows: 不受保护的代码如下:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"    target="_top">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="IDENTIFICATION NUMBER">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="DONATION FUND NAME">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="bn" value="PP-DonationsBF:fund.png:NonHosted">
<input type="image" src="BUTTON ARTWORK" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

Any ideas? 有任何想法吗?

On the paypal website I see two options one is for one time donation and another is for recurring donation (subscription). 在贝宝网站上,我看到两种选择,一种是一次性捐赠,另一种是定期捐赠(订阅)。 You might want to use the one time donation option. 您可能要使用一次性捐赠选项。

For what Paypal suggested: you will have to either search and remove the HTML tags that show the recurring option or comment them out by enclosing them within HTML comment 对于Paypal的建议:您将必须搜索并删除显示重复选项的HTML标记,或者通过将它们括在HTML注释中来对其进行注释

If you can remove any sensitive information from your HTML code and post it here. 如果您可以从HTML代码中删除任何敏感信息,然后在此处发布。 I (or someone else) can quickly tell you what to remove or comment. 我(或其他人)可以快速告诉您要删除或评论的内容。

Update after looking at HTML: Does not look like the HTML code showing the recurring option is on your website. 查看HTML后更新:您的网站上看起来不像HTML代码显示重复选项。 The form that you are submitting triggers that form on paypal's website. 您提交的表单会触发贝宝网站上的表单。

I have seen options for one-time donations on other non-profits. 我看到了一次性向其他非营利组织捐款的选项。 sample : https://eclipse.org/donate/ I have not done this by myself. 示例: https : //eclipse.org/donate/我还没有自己做过。 I suggest you go to paypal and re-generate the donate button/html and make sure you are using the one time donation option. 我建议您去支付宝并重新生成捐赠按钮/ html,并确保您使用的是一次性捐赠选项。

Thanks @Adi Pandit. 谢谢@Adi Pandit。

I did use the Donation Option rather than the Subscription, which is why it's confusing. 我确实使用了捐赠选项而不是订购,这就是它令人困惑的原因。

The unprotected code reads as follows: 不受保护的代码如下:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"    target="_top">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="IDENTIFICATION NUMBER">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="DONATION FUND NAME">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="bn" value="PP-DonationsBF:fund.png:NonHosted">
<input type="image" src="BUTTON ARTWORK" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

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

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