【发布时间】:2021-05-11 18:01:13
【问题描述】:
我使用此 url https://api-m.sandbox.paypal.com/v1/identity/openidconnect/tokenservice?grant_type=refresh_token&refresh_token=A21AAINhl7...._p4r5fZe1LJw 获得无效的刷新令牌
我的参数:
grant_type=refresh_token
refresh_token="A21AAINhl7...._p4r5fZe1LJw"
标题:
Content-Type=application/x-www-form-urlencoded
basic auth
clientid
client secret
输出
{
"error_description": "Unable to refresh access token",
"error": "invalid_request",
"correlation_id": "c58cc1...b0c5a",
"information_link": "https://developer.paypal.com/docs/api/#errors"
}
或者如何使用 paypal api 获取刷新令牌?刷新令牌值是我在这个 url 中设置的过期访问令牌,对吗?
【问题讨论】:
-
你发送什么类型的请求,你发送什么标头?
-
这是发布请求,其中 heder 是 content type=application/x-www-form-urlencoded 和
-
我已经用完整的请求更新了我的问题。
标签: java spring-boot paypal payment-gateway paypal-sandbox