gpt4 book ai didi

adyen - Web Drop-in 集成

转载 作者:行者123 更新时间:2023-12-05 04:32:56 24 4
gpt4 key购买 nike

我目前正在实现 Adyen Web Drop-in 集成,但在暂存测试中遇到了问题。

在 Adyen 开发人员控制台中,我可以看到 session 端点的 API 请求和响应,它们按预期返回了 sessionData 负载。

session log

然后我们将 sessionData 传递到正确呈现表单的页面。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<script src="https://checkoutshopper-live.adyen.com/checkoutshopper/sdk/5.10.0/adyen.js"
integrity="sha384-LoKEanRPljHoEsT5o+grBn8hgVzoPevwGvRd+gOp/2Xgc4Jx2FQkx29092SKDdeY"
crossorigin="anonymous"></script>

<link rel="stylesheet"
href="https://checkoutshopper-live.adyen.com/checkoutshopper/sdk/5.10.0/adyen.css"
integrity="sha384-DB96UxMFf+ytuAxtum6/9TOoG/y+vUDFbqolCb7OcQvBA+qSrGaRrl81nMADo/+9"
crossorigin="anonymous">
</head>

<body>
<div id="dropin-container"></div>
<script type="text/javascript">
(async () => {
let checkout = await AdyenCheckout(${partnerJsonParameters?string});
checkout.create('dropin').mount('#dropin-container');
})();
</script>
</body>
</html>

在使用测试信用卡号填写表格并单击“支付”后,我在浏览器网络 Pane 中看到两个请求,CORS pre-flight 没问题,然后第二个请求失败

{"status":403,"errorCode":"010","message":"Not allowed [This error message is only provided on TEST, this error will be a 500 Internal Error on LIVE.]","errorType":"security"}

我找到了两篇关于这个错误的文章,https://www.adyen.help/hc/en-us/articles/360014216000-Why-do-I-receive-a-403-or-010-Not-Allowed-error-https://docs.adyen.com/development-resources/error-codes#010-not-allowed但角色似乎还不错。

roles

我已验证来自服务器端的 session 和结帐配置都配置了“测试”环境。关于我还可以尝试什么的任何指示?

最佳答案

在与 Matthew 反复讨论后,这里是解决方案。

We have seen this error happening before on the test environment, andthe best way to resolve is to use another API user. Would it bepossible to create a new API user as described here, or use another ofthe existing ones? Using the API Key and Client Key from the new usershould resolve the issue.

关于adyen - Web Drop-in 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71559500/

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