gpt4 book ai didi

php - Paypal 支付 REST API - REQUIRED_SCOPE_MISSING

转载 作者:太空宇宙 更新时间:2023-11-03 15:38:57 25 4
gpt4 key购买 nike

在用户批准后执行()授权付款时失败。

作用域:"openid 配置文件电子邮件地址电话 https://uri.paypal.com/services/expresscheckout "

同意_uri:"https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize?client_id=my_client_id&response_type=code&scope=openid%20profile%20email%20address%20phone%20https://uri.paypal.com/services/expresscheckout&redirect_uri=https://www.my_site.com/src/paypal.php "

[http_code] => 403
[url] => https://api.sandbox.paypal.com/v1/payments/payment/PAY-55313193UK1537019LCXIDBA/execute
[header] => Array
(
[0] => Content-Type:application/json
[1] => Authorization:Bearer user_access_token_from_identity_api
[2] => PayPal-Partner-Attribution-Id:pp_attr_id
)

[post_data] => {"payer_id":"3BTU9WTCHAU2Q"}
[response] => {"name":"REQUIRED_SCOPE_MISSING","message":"Access token is missing required scope.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#REQUIRED_SCOPE_MISSING","debug_id":"e40c3f6b601a"}

)

我只使用一个沙箱 client_id,并且启用了接受付款和使用无缝结账权限。

https://developer.paypal.com/docs/integration/direct/identity/seamless-checkout/

非常感谢任何见解。

最佳答案

您是否在 developer.paypal.com 上的“APP CAPABILITIES”-->>“Advanced options”下的您的应用程序配置中选中了“订阅”标记?

关于php - Paypal 支付 REST API - REQUIRED_SCOPE_MISSING,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42407477/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com