【发布时间】:2022-01-03 18:25:18
【问题描述】:
我正在关注此文档: https://developer.paypal.com/docs/platforms/subscriptions/customize/revise-subscriptions/
我可以提出一个获取订阅请求并且我确实找到了资源,所以它确实存在,我正在尝试为用户更改计划但没有成功。
我尝试了多次订阅升级并不断收到此错误:
{
"name": "RESOURCE_NOT_FOUND",
"message": "The specified resource does not exist.",
"debug_id": "badd307417e54",
"details": [
{
"issue": "INVALID_RESOURCE_ID",
"description": "Requested resource ID was not found."
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/v1/billing/subscriptions#RESOURCE_NOT_FOUND",
"rel": "information_link",
"method": "GET"
}
]
}
我正在生产环境中测试我的个人用户。
使用邮递员提出的请求:
curl --location --request POST 'https://api-m.paypal.com/v1/billing/subscriptions/I-XXXXXX/revise' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX' \
--data-raw '{"plan_id":"P-XXXXXXXXXXXXXXX"}'
【问题讨论】:
-
然后向我们展示您用于执行此操作的代码
-
我添加了一个邮递员截图,它是一个简单的发布请求,在生产环境中得到同样的错误
-
Never post images of code, data or error messages。请编辑您的问题并将文本复制/粘贴到问题中,格式化。这样我们就可以尝试重现问题而无需重新输入所有内容,并且屏幕阅读器可以正确索引或阅读您的问题。
-
谢谢,会修复的
标签: php laravel paypal paypal-rest-sdk paypal-subscriptions