- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在努力调用 PayPal 的 Web 服务来执行 TransactionSearch,如下所示:
AccountType accountType = AccountType.Live;
tblPayPalAccount account = PayPalAPICallHelperSOAP.GetAccount(accountType);
DateTime endDate = new DateTime(2012, 1, 1);
DateTime startDate = new DateTime(2012, 12, 31);
using (PayPalAPIInterfaceClient client = new PayPalAPIInterfaceClient())
{
client.Endpoint.Address = new System.ServiceModel.EndpointAddress("https://api-3t.paypal.com/2.0");
UserIdPasswordType userIdPasswordType = PayPalAPICallHelperSOAP.GetUserIdPasswordType(account);
CustomSecurityHeaderType header = new CustomSecurityHeaderType();
header.Credentials = userIdPasswordType;
TransactionSearchReq request = new TransactionSearchReq();
request.TransactionSearchRequest = new TransactionSearchRequestType();
request.TransactionSearchRequest.Version = account.version;
request.TransactionSearchRequest.StartDate = startDate;
request.TransactionSearchRequest.EndDate = endDate;
TransactionSearchResponseType transactionSearchResponseType = client.TransactionSearch(ref header, request);
}
从今天开始我总是得到 67 个结果,不管我传递给 StartDate/EndDate 的值是多少(在本例中是 2012 年,但我只得到最近几周的值)
我错过了什么吗?这真的困扰了我很长一段时间,无论我设置什么,结果总是一样的。
最佳答案
request.TransactionSearchRequest.EndDateSpecified = true;
告诉网络服务结束日期已设置。这解决了你的问题。不知道为什么需要它。
关于c# - TransactionSearch 的 PayPal Web 服务不遵守 StartDate/EndDate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16078206/
我们目前正在使用一个应用程序,该应用程序通过 SOAP API 接口(interface)执行客户 PayPal 帐户的交易搜索。我注意到在某些情况下可能会发生以下情况: 为某个金额创建初始付款交易,
在使用 paypal SOAP API (TransactionSearch) 发生 SSLHandshakeException 后,我已将 paypal_base.jar 更新为 paypal 在以
这是我的情况,我想在供应商账单 ID 列表中提取具有 ApplyList.apply.doc(这是供应商账单 ID)的供应商信用。 我必须创建一个 TransactionSearch,但我不知道如何为
我一直在对 PayPal 的 TransactionSearch 方法进行一些研究,该方法是他们用于 C# 的 .NET SDK 的一部分... 对于给定的日期范围,TransactionSearch
我正在尝试调用 TransactionSearch。但是我得到了异常 Missing credentials Exception 这是我的代码 TransactionSearchResponseTyp
是否可以在 TransactionSearch 请求中应用多个过滤器,例如在“STATUS”选项中,以便在单个请求中检索“成功”和“已撤销”交易? 最佳答案 联系 PayPal 技术支持后,似乎不可能
我正在使用 PayPal NVP API 来搜索和下载交易。当 STARTDATE 和 ENDDATE 之间的间隔太大时,即 4 个月左右,就会出现问题。然后我得到 100 个交易/调用,但其中一些丢
我正在使用 TransactionSearch() 方法返回交易列表和有关这些交易的详细信息。它工作得很好,只是我只有日期、金额和其他有关交易的详细信息——不包括所售实际商品的名称。 我正在使用以下内
您好,我正在使用 paypal API 执行查询,我的问题涉及一个数组并检索 key 的值(这是动态的)我知道查询有效并且凭据很好,因为返回了以下数组: array(2) { ["L_TRANSACT
我正在使用 PayPal 的 API 进行交易搜索 - https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo
我正在努力调用 PayPal 的 Web 服务来执行 TransactionSearch,如下所示: AccountType accountType = AccountType.Live; tblPa
好的,所以下面的代码给我上面的错误“开始日期无效”。即使我已经从各种来源验证它是一个有效且格式正确的开始日期。代码的 res 没有问题,因为它成功返回了正确的余额。我到处搜索,但找不到解决方案。请帮忙
标题是Paypal NVP API的错误信息。 API 是 TransactionSearch。在我的 PHP 代码中,如果我设置搜索参数 "STATUS"=> "Reversed",API 会返回以
我有一个如下所示的权限请求: timestamp, signature = genPermissionsAuthHeader.getAuthHeader(str(self.username), str
我知道在 2017 年之前,PayPal 提供了 Api,我可以通过 Rest API 获取所有交易历史记录。那就是使用 NVP 的 TransactionSearch。但 PayPal 表示它已被弃
我正在使用 PayPal API 向商家请求权限以访问其帐户的某些部分。其中之一是 TransactionSearch 方法。 通常只有在提供 USER、PWD 和 SIGNATURE 时才能使用 T
我是一名优秀的程序员,十分优秀!