我正在尝试使用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->我的APP->单击您的APP名称-> App Feature。选择此处付款。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句