沙盒上的付款错误 [英] Payouts errors on Sandbox
本文介绍了沙盒上的付款错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用REST API创建付款功能,并且出现了很少的错误.
I am trying to create Payout functionality using REST API, and I have few errors.
我正在发送此请求:
{"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"}
第二个错误也很奇怪,因为付款工作正常,范围也很好
the second error is also strange, because payments are working fine, and scope is also fine
{"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的应用程序下选中了付款"选项.
For the second error make sure you have checked the option for "payouts" under your application at developer.paypal.com .
转到developer.paypal.com-> DashBoard->我的APP->单击您的APP名称->应用功能.选择此处付款.
Go to developer.paypal.com --> DashBoard --> My APP -- > Click your APP Name --> App Feature . Select Payout here .
这篇关于沙盒上的付款错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文