使用贝宝帐户中提供的代码的“贝宝立即购买”按钮会产生错误

时间:2020-04-06 00:25:04

标签: html paypal

我尝试并尝试使用一个简单的“立即购买”按钮来使用从PayPal帐户中生成的代码进行工作:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
  <input type="hidden" name="cmd" value="_s-xclick">
  <input type="hidden" name="hosted_button_id" value="7DKPMH8DYQQSN">
  <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynow_LG.gif" 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>

无论我做什么,在点击时都会产生错误:

PayPal cannot process this transaction because of a problem with the seller's website. Please contact the seller directly to resolve this problem.

我已经搜索了PayPal帮助系统(例如,是!),但是除了对charset =的相当晦涩的引用外,什么都没有找到,但是他们对如何在帐户中设置该值的描述与我在英国看到的内容无关帐户!

我已经将页面简化为一个简单的测试,仅靠一个按钮-

<!DOCTYPE HTML>
<HTML LANG="EN">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>Membership Subscription</title>
</head>

<body>

  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="7DKPMH8DYQQSN">
    <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynow_LG.gif" 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>

</body>

</html>

这仍然会产生错误。

尝试将字符集更改为UTF-8,但这似乎完全没有区别-仍然是相同的错误。

1 个答案:

答案 0 :(得分:0)

最好的办法是,该特定的托管按钮存在问题,因此您应该登录https://www.paypal.com并通过https://www.paypal.com/buttons创建一个新的Pay Now按钮。

(似乎托管ID 7DKPMH8DYQQSN 实际上不存在 .. ???)


在您的PayPal帐户中,可以在https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-language-encoding->“更多选项”中将默认语言编码设置为UTF-8。但是,这与您遇到的问题无关,因为您的按钮没有下拉/选择