gpt4 book ai didi

javascript - 无效返回无效的 client_id 或 redirect_uri

转载 作者:行者123 更新时间:2023-12-05 06:50:19 25 4
gpt4 key购买 nike

目前我正尝试在我的网络应用程序上连接 paypal oauth 登录。但是我收到了这个错误

enter image description here

客户端代码

<script src="https://www.paypalobjects.com/js/external/connect/api.js"></script>
<script>
paypal.use(["login"], function (login) {
login.render({
appid:
"<I took from the client id>",
scopes: "openid profile email address",
containerid: "cwppButton",
responseType: "code",
locale: "en-us",
buttonType: "CWP",
buttonShape: "pill",
buttonSize: "md",
fullPage: "true",
returnurl: "http://127.0.0.1:8080/paypal-return",
});
});
</script>

客户端ID

enter image description here

返回地址

enter image description here

我在这里遗漏了什么吗,我找不到指向正确方向的错误。

谢谢

最佳答案

下面的代码对我有用。我遇到了同样的问题并包含了这个:“authend”:“sandbox”完整代码:

    <span id='lippButton'></span>
<script src='https://www.paypalobjects.com/js/external/api.js'></script>
<script>
paypal.use( ['login'], function (login) {
login.render ({
"appid":"<MY APP ID>",
"authend": "sandbox",
"scopes":"openid",
"containerid":"lippButton",
"responseType":"code",
"locale":"en-us",
"buttonType":"LWP",
"buttonShape":"pill",
"buttonSize":"lg",
"fullPage":"true",
"returnurl":"http://127.0.0.1/CyFlying/public/"
});
});
</script>

关于javascript - 无效返回无效的 client_id 或 redirect_uri,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66434771/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com