搜索客户交易数据 [英] Search client transactions data
问题描述
我正在构建类似于个人理财的应用程序.为此,我需要获取有关该客户交易的信息.
I'm building an application that resembles personal financing. For that, I need to fetch information about that customer's transactions.
我设法运行了 GetBasicPersonalData 权限服务中的示例.
I managed to run the GetBasicPersonalData example within the permissions service.
在这里,它表示请求TRANSACTION_SEARCH
允许我代表客户使用TransactionSearch
.
Here it says that requesting TRANSACTION_SEARCH
will allow me to use TransactionSearch
on behalf of the customer.
没有这样的终结点,并调用 NVP服务与METHOD=TransactionSearch
和类似构造的X-PAYPAL-AUTHORIZATION
标头也不起作用.
There is no such endpoint and calling the NVP service with METHOD=TransactionSearch
and similarly constructed X-PAYPAL-AUTHORIZATION
header doesn't do it either.
如何使用从权限服务中检索到的令牌和令牌密钥来列出该客户的交易?
How can I use the token and token secret retrieved from the permissions service to list that customer's transactions?
更新:根据 FAQ#6在这里,X-PAYPAL-AUTHORIZATION
应该用于替换USER
,PWD
和SIGNATURE
参数.当我以这种方式调用nvp服务时,会得到:
Update: According to FAQ#6 here, the X-PAYPAL-AUTHORIZATION
is supposed to be used to replace the USER
, PWD
, and SIGNATURE
params. When I call the nvp service that way I get:
TIMESTAMP = 2016%2d11%2d07T15%3a35%3a36Z& CORRELATIONID = f50b7296c2d28& ACK = Failure& VERSION = 94%2e-0& BUILD = 24616352& L_ERRORCODE0 = 10002& L_SHORTMESSAGE0 = Authentication%2 %20not%20have%20permissions%20to%20make%20this%20API%20call& L_SEVERITYCODE0 =错误
TIMESTAMP=2016%2d11%2d07T15%3a35%3a36Z&CORRELATIONID=f50b7296c2d28&ACK=Failure&VERSION=94%2e0&BUILD=24616352&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Authentication%2fAuthorization%20Failed&L_LONGMESSAGE0=You%20do%20not%20have%20permissions%20to%20make%20this%20API%20call&L_SEVERITYCODE0=Error
推荐答案
我想分享以下有用的文档供您参考:
I'd like to share below useful documents for your reference:
TransactionSearch API指南此处;
TransactionSearch API guide here;
TransactionSearch API参考此处;
TransactionSearch API reference here;
PayPal API端点此处(请参阅商家API);
PayPal API Endpoint here(Refere Merchant APIs);
这篇关于搜索客户交易数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!