gpt4 book ai didi

rest - 沙盒上的支出错误

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

我正在尝试使用 REST API 创建支付功能,但几乎没有错误。

当我发送此请求时:

{"sender_batch_header":{"sender_batch_id":"test_0","email_subject":"RaceBets Withdrawal","recipient_type":"PAYPAL_ID"},"items":[{"recipient_type":"PAYPAL_ID","amount":{"currency":"EUR","value":"20.0"},"receiver":"XXXX","note":"Hello there!","sender_item_id":"71292226"}]}

我收到了:

JAXBException occurred : 4 counts of IllegalAnnotationExceptions. 

或:

{"name":"REQUIRED_SCOPE_MISSING","message":"Access token does not have required scope.","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#REQUIRED_SCOPE_MISSING"}

第二个错误也很奇怪,因为付款工作正常,范围也很好

{"scope":"https://uri.paypal.com/services/subscriptions https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault/credit-card https://uri.paypal.com/services/applications/webhooks openid https://uri.paypal.com/services/invoicing https://api.paypal.com/v1/vault/credit-card/.*","access_token":"xxx","token_type":"Bearer","app_id":"APP-xxx","expires_in":28800}

有什么想法吗?

最佳答案

对于第二个错误,请确保您已在 developer.paypal.com 上的应用程序下选中“付款”选项。

前往 developer.paypal.com --> DashBoard --> 我的应用程序 --> 单击您的应用程序名称 --> 应用程序功能。在此处选择支付。

enter image description here

关于rest - 沙盒上的支出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29820168/

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