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

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

问题描述

我正在尝试设置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.

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

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