- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
在使用 paypal SOAP API (TransactionSearch) 发生 SSLHandshakeException
后,我已将 paypal_base.jar
更新为 paypal 在以下链接中指示的版本:
https://github.com/paypal/TLS-update
我已经解决了这个问题,但是我有以下问题:
mar 31, 2016 6:56:26 PM com.paypal.sdk.core.soap.SOAPAPICaller call
INFORMACIÓN: transactionSearch sent
mar 31, 2016 6:56:28 PM com.paypal.sdk.exceptions.TransactionException <init>
GRAVE: (400)Bad Request
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.paypal.sdk.core.soap.SOAPAPICaller.callSOAP(SOAPAPICaller.java:462)
at com.paypal.sdk.core.soap.SOAPAPICaller.call(SOAPAPICaller.java:382)
at com.paypal.sdk.services.CallerServices.call(CallerServices.java:125)
at t.main(t.java:42)
Caused by: (400)Bad Request
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.paypal.soap.api.PayPalAPISoapBindingStub.transactionSearch(Unknown Source)
... 8 more
关于这个问题有什么线索吗?
更新:
这是请求:
TransactionSearchRequestType request = new TransactionSearchRequestType();
request.setStartDate(new GregorianCalendar());
CallerServices caller = new CallerServices();
try {
APIProfile profile = ProfileFactory.createSignatureAPIProfile();
profile.setAPIUsername("*********");
profile.setAPIPassword("*************");
profile.setSignature("*******************************************");
profile.setEnvironment("sandbox");
caller.setAPIProfile(profile);
TransactionSearchResponseType response = (TransactionSearchResponseType) caller.call("TransactionSearch", request);
} catch (PayPalException e) {
System.out.println("PaypalCaller: Error calling Paypal webservice " + e);
} catch (Exception e) {
System.out.println(e.getMessage() + e);
} catch (Throwable e) {
System.out.println(e.getMessage() + e);
}
最佳答案
我能够解决问题。我使用了另一个可用于执行相同操作的 paypal 库:
https://github.com/paypal/merchant-sdk-java
代码:
TransactionSearchReq txnreq = new TransactionSearchReq();
TransactionSearchRequestType requestType = new TransactionSearchRequestType();
requestType.setStartDate("2016-03-28T00:00:00.000Z");
txnreq.setTransactionSearchRequest(requestType);
PayPalAPIInterfaceServiceService service;
try {
Map<String, String> sdkConfig = new HashMap<String, String>();
sdkConfig.put("mode", "sandbox");
sdkConfig.put("acct1.UserName", "***********");
sdkConfig.put("acct1.Password", "***************");
sdkConfig.put("acct1.Signature","*****************************");
service = new PayPalAPIInterfaceServiceService(sdkConfig);
TransactionSearchResponseType response = service.transactionSearch(txnreq);
} catch (Exception e) {
e.printStackTrace();
}
关于ssl - (400)PayPalAPISoapBindingStub.transactionSearch 中的错误请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36337973/
我们目前正在使用一个应用程序,该应用程序通过 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
我是一名优秀的程序员,十分优秀!