You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

自定义PayPal表单按钮显示头像而非商家名称问题求助

PayPal捐赠按钮不显示商家名称的解决办法

检查账户设置

  • 登录PayPal企业账户,进入「设置-商家信息」,确认已设置并保存公开商家名称,且开启了在付款页面展示的选项
  • 检查账户隐私设置,确保没有勾选隐藏商家名称的选项

调整表单代码

当前代码使用的是普通商品付款指令_xclick,适配捐赠场景建议做以下修改:

  1. 将cmd字段的值改为_donations,匹配捐赠按钮的官方规范
  2. 把business字段的邮箱替换为你的PayPal账户商家ID(可在账户设置中找到),用商家ID关联账户能更稳定调用商家名称信息

修改后的代码示例:

<form action="https://www.paypal.com/de/cgi-bin/webscr" method="post" target="_blank" name="paypal">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" class="mail" value="你的商家ID">
<input type="hidden" name="item_name" id="description" value="TEXT">
<input type="hidden" name="amount" id="amount" value="12.34">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="return" value="returnPath(replaced)">
<input type="hidden" name="notify_url" value="notifyPath(replaced)">
<button type="submit">Donate with Paypal</button>
</form>

额外排查步骤

  • 测试前清空浏览器缓存,避免旧会话信息影响展示
  • 若上述操作无效,直接在PayPal商家平台重新生成官方捐赠按钮代码,替换现有代码,官方生成的代码会自动配置正确的账户参数

内容的提问来源于stack exchange,提问作者user706420

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.19 02:05:08