我正在构建一个类似于个人理财的应用程序。为此,我需要获取有关该客户交易的信息。
我设法运行了获取基本个人数据 https://developer.paypal.com/docs/classic/permissions-service/integration-guide/PermissionsUsing/权限服务中的示例。
Here https://developer.paypal.com/docs/classic/permissions-service/integration-guide/PermissionsAbout/它说要求TRANSACTION_SEARCH
将允许我使用TransactionSearch
代表客户。
没有这样的端点并调用NVP服务 https://developer.paypal.com/docs/classic/express-checkout/ht_searchRetrieveTransactionData-curl-etc/ with METHOD=TransactionSearch
和类似的构造X-PAYPAL-AUTHORIZATION
header 也不这样做。
如何使用从权限服务检索到的令牌和令牌秘密来列出该客户的交易?
Update:根据常见问题解答#6 在这里 https://developer.paypal.com/docs/classic/permissions-service/integration-guide/PermissionsFAQs/, the X-PAYPAL-AUTHORIZATION
应该用来替换USER
, PWD
, and SIGNATURE
参数。当我以这种方式调用 nvp 服务时,我得到:
时间戳=2016%2d11%2d07T15%3a35%3a36Z&CORRELATIONID=f50b7296c2d28&ACK=失败&版本=94%2e0&BUILD=24616352&L_ERRORCODE0=10002&L_SHORTMESSAGE0=身份验证%2f授权%20失败&L_L ONGMESSAGE0=您%20do%20not%20有%20permissions%20to%20make%20this%20API%20call&L_SEVERITYCODE0=错误
我想分享以下有用的文档供您参考:
交易搜索API指南here https://developer.paypal.com/docs/classic/express-checkout/ht_searchRetrieveTransactionData-curl-etc/?mark=API%20endpoint;
交易搜索 API 参考here https://developer.paypal.com/docs/classic/api/merchant/TransactionSearch_API_Operation_NVP/;
贝宝 API 端点here https://developer.paypal.com/docs/classic/api/endpoints/?mark=API%20endpoint(请参阅商户 API);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)