将“捐赠”更改为“回馈”博客上的 Paypal 按钮

发布于 2024-09-19 06:45:26 字数 455 浏览 2 评论 0原文

我无法计算有多少次我受到开源项目或图书馆的帮助,或者促使我提出这个问题的一个非常好的博客,其中有很棒的教学视频。但我一直不明白为什么这些优秀的资源总是有一个贝宝的“捐赠”按钮(好像他们在乞讨什么的。这些人是不是忘记了我们欠他们的?但这不是重点)。

所以我想写一篇关于如何将贝宝按钮从“捐赠”更改为“回馈”的教程。我使用的是 PHP,之前没有真正使用过 PayPal API。我猜这只是一个小改动:只需创建一个按钮图形并替换 CSS。

  • 是这样吗?和/或你会怎么做?
  • 我从哪里可以获得一张开源 PayPal 图像,上面写着“回馈”。 OpenClipArt.org 没有任何内容。

任何源代码或 CSS 都值得赞赏

I can't count the number of times I've been helped by an open source project or a library, or, as what prompted me to ask this question, a really good blog which has great instructional videos. But I never understood why these excellent resources always have a paypal "Donate" button (As if they're begging or something. Are these people forgetting that we owe them? but that's beside the point).

So I'd like to write a tutorial on how to change the paypal button from "Donate" to "Give Back". I'm using PHP and haven't really used the PayPal API before. My guess is it's a small change: just create a button graphic and just replacing the CSS.

  • Is that the case? and/or how would you go about doing this?
  • From where do I get an open source PayPal image that says "Give Back". OpenClipArt.org doesn't have any.

Any source code or CSS is appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无所的.畏惧 2024-09-26 06:45:26

为什么不直接将捐赠按钮代码中的图像更改为您想要的任何图像?或者我错过了什么?

这是我在他们的一个 示例 中找到的一些示例贝宝捐赠代码:

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="Team In Training">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="25.00">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

您只需更改此标签中图像的 url

<input type="image" src="/path/to/your/image.gif">

why not just change the image in the donate button code to whatever image you want? or am I missing something?

This is some sample paypal donate code I found in one of their examples:

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="Team In Training">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="25.00">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

you would just need to change the url to your image in this tag

<input type="image" src="/path/to/your/image.gif">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文