【发布时间】:2017-07-13 10:42:21
【问题描述】:
在用户批准后 Execute() 授权付款时失败。
范围 : "openid 个人资料邮箱电话https://uri.paypal.com/services/expresscheckout"
[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/
非常感谢任何见解。
【问题讨论】: