如何为使用 PayPal 登录设置重定向 URI [英] How to Set a Redirect URI For Login with PayPal

查看:27
本文介绍了如何为使用 PayPal 登录设置重定向 URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置 redirect_uri 以便我的应用不会一直出错:

I'm trying to setup a redirect_uri so my app doesn't keep erroring with:

依赖方验证错误:请求中提供了redirect_uri与注册的redirect_uri 不匹配.请检查请求.

Relying Party Validation error: redirect_uri provided in the request does not match with the registered redirect_uri. Please check the request.

这个套装在哪里?我正在使用此处找到的在线工具:https://devtools-paypal.com/guide/openid/ruby?success=true&env=sandbox.我已经检查了 PayPal 开发人员门户,但找不到重定向 URI.最接近的是返回 URL(测试交易后用户将被重定向到的位置)但设置没有消除错误.

Where is this set? I'm using the online tool found here: https://devtools-paypal.com/guide/openid/ruby?success=true&env=sandbox. I've checked in the PayPal developer portal and can't find a redirect URI. Closest is a return URL (Where users will be redirected after test transactions) but setting that didn't remove the error.

推荐答案

显然 PayPal 托管了两个开发人员管理门户...

Apparently PayPal hosts two developer admin portals...

https://developer.paypal.com/webapps/developer/applications/myapps(更改重定向 URI)

https://developer.paypal.com/webapps/developer/applications/myapps (change redirect URI)

https://developer.paypal.com/developer/applications(不能更改重定向 URI)

https://developer.paypal.com/developer/applications (can't change redirect URI)

如果您只是浏览到 developer.paypal.com 并登录,您将转到不允许重定向 URI 的那个.PayPal 需要有人开始修复开发者工具并更新文档.

If you just browse to developer.paypal.com and login you go to the one that doesn't allow for redirect URIs. Someone at PayPal needs to start fixing the developer tools and updating the documentation.

注意:确保 URL 包含某种尾部斜杠似乎也有帮助,更改此设置显然需要 3 小时才能传播.

Note: ensure that the URL contains some sort of trailing slashes also seems to have helped and changing this can apparently take 3 hours to propagate.

这篇关于如何为使用 PayPal 登录设置重定向 URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆