Paypal 沙箱订阅按钮 400 错误

问题描述 投票:0回答:1

我在 PayPal 沙盒方面遇到了一个奇怪的问题。 我正在尝试从 https://sandbox.paypal.com/buttons 创建订阅按钮,但它不起作用!

这是页面生成的代码。

<form action="https://www.sandbox.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="F7H82MZZ8PFKL" />
    <input type="hidden" name="currency_code" value="USD" />
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Subscribe" />
  </form>

这是控制台中的输出:

early_flush_waiting_for_second_chunk 
Object
client_elapsed
: 
3
event
: 
"early_flush_waiting_for_second_chunk"
level
: 
"info"
pageID
: 
25
req_elapsed
: 
1220
state
: 
"pre_bootstrap"
timestamp
: 
"1691655080674"
[[Prototype]]
: 
Object
ngrlCaptcha.min.js:1 
        
        
        POST https://www.sandbox.paypal.com/webapps/billing/api/billagmt/undefined/createCart 400

我已经尝试了一切并浏览了各种论坛,但似乎没有任何效果。我尝试过其他按钮(立即购买),它们工作正常。 该按钮和电子邮件链接都不起作用。我已经尝试过企业和个人帐户。所有关联的电子邮件地址也都经过验证!

html paypal paypal-sandbox paypal-subscriptions
1个回答
0
投票

由于没有人能够提供解决方案,我想发布解决方法。因此,解决这个问题的方法是使用贝宝的智能订阅按钮而不是订阅按钮。确切地说,是 JavaScript SDK。他们工作得很好。

我仍然对最初的问题感到好奇。所以如果您知道的话请提供正确的答案!

© www.soinside.com 2019 - 2024. All rights reserved.