【发布时间】:2019-12-09 23:34:13
【问题描述】:
我正在尝试将订阅与贝宝集成。 我正在按照此处的说明进行操作: https://developer.paypal.com/docs/subscriptions/integrate/#
我在第 2 步(创建产品)中遇到问题。 我正在使用 php 进行 curl 调用,但出现错误并且无法解决。卷曲链接为:https://api.sandbox.paypal.com/v1/catalogs/products
我得到的回应是:
{
"name": "NOT_AUTHORIZED",
"message": "Authorization failed due to insufficient permissions.",
"debug_id": "7de3b61dcde85",
"details": [
{
"issue": "PERMISSION_DENIED",
"description": "You do not have permission to access or perform operations on this resource"
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/v1/billing/subscriptions#NOT_AUTHORIZED",
"rel": "information_link",
"method": "GET"
}
]
}
有人知道,请问我该如何解决?如何添加权限以便创建产品?
【问题讨论】:
标签: php curl paypal paypal-sandbox paypal-subscriptions