paypal 用户登录页面(点击 paypal 按钮后的页面)在添加“&vault=true&intent=subscription”后无限期重新加载
paypal user login page (page after clicking the paypal button) reloads indefinitely, after adding "&vault=true&intent=subscription"
我正在为订阅相关服务集成 PayPal,我之前通过添加脚本添加 Paypal 按钮实现了一次性支付
<script src="https://www.paypal.com/sdk/js?client-id=SB_CLIENT_ID"></script>
但根据文档进行订阅
https://developer.paypal.com/docs/subscriptions/integrate/#subscriptions-with-smart-payment-buttons
我们应该添加
&vault=true&intent=subscription
也因此
<script src="https://www.paypal.com/sdk/js?client id=SB_CLIENT_ID&vault=true&intent=subscription"></script>
但是在添加这个之后我在 chrome 控制台中收到以下错误并且登录页面无限期地重新加载
Failed to load resource: the server responded with a status of 400
(Bad Request)
您的第二个代码段中似乎有错字,client id
代替了正确的参数名称。
这个沙箱 URL 工作正常:
https://www.paypal.com/sdk/js?client-id=test&vault=true&intent=subscription
我正在为订阅相关服务集成 PayPal,我之前通过添加脚本添加 Paypal 按钮实现了一次性支付
<script src="https://www.paypal.com/sdk/js?client-id=SB_CLIENT_ID"></script>
但根据文档进行订阅
https://developer.paypal.com/docs/subscriptions/integrate/#subscriptions-with-smart-payment-buttons 我们应该添加
&vault=true&intent=subscription
也因此
<script src="https://www.paypal.com/sdk/js?client id=SB_CLIENT_ID&vault=true&intent=subscription"></script>
但是在添加这个之后我在 chrome 控制台中收到以下错误并且登录页面无限期地重新加载
Failed to load resource: the server responded with a status of 400 (Bad Request)
您的第二个代码段中似乎有错字,client id
代替了正确的参数名称。
这个沙箱 URL 工作正常:
https://www.paypal.com/sdk/js?client-id=test&vault=true&intent=subscription