我PayPal MassPay API在沙盒模式下使用时遇到异常.
相同的代码早先工作,现在它给了我一个SSLHandshakeException.我认为这是因为PayPal最新的SSL认证更新.有人可以帮我解决这个问题吗?
以下是我的异常日志:
http-bio-9090-exec-1, READ: TLSv1 Alert, length = 2
http-bio-9090-exec-1, RECV TLSv1 ALERT: fatal, handshake_failure
http-bio-9090-exec-1, called closeSocket()
http-bio-9090-exec-1, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
com.paypal.core.rest.PayPalRESTException: Received fatal alert: handshake_failure
at com.paypal.core.rest.PayPalResource.execute(PayPalResource.java:374)
at com.paypal.core.rest.PayPalResource.configureAndExecute(PayPalResource.java:225)
at com.paypal.sdk.openidconnect.Tokeninfo.createFromAuthorizationCode(Tokeninfo.java:245)
at com.oldwallet.controllers.CouponPaymentController.redeemed(CouponPaymentController.java:321)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at …Run Code Online (Sandbox Code Playgroud) 我们有一个通过PayPal MassPay API向我们的用户汇款的系统,它工作正常,但问题是:我找不到通过PayPal的API检索MassPay交易状态的方法.
我调查的第一件事是使用PayPal'GetTransactionDetails'API调用,但这需要交易ID,而原始PayPal MassPay API调用不会返回该ID.发布MassPay时,这是PayPal响应:https://gist.github.com/3860194
正如您在响应中所看到的,PayPal向我发出了相关ID,但没有交易ID.我的下一个想法是使用'TransactionSearch'API调用,但它也不接受相关ID.我甚至尝试基于TransactionClass参数('MassPay')和StartDate进行广泛的TransactionSearch,但响应中不包含任何信息(电子邮件或相关ID),这些信息允许我确定哪个搜索结果是我的原始请求.
是否有人使用PayPal的API通过相关ID搜索/检索交易ID?
您好我是整合MassPay API中我的项目,我想通过masspay API我是笨集成到批量发送支付.我为此创建了两个函数,并获得相关ID和成功消息,但当我看到我的沙盒paypal帐户钱不转移和我的沙箱帐户中没有交易.
这个我的代码请指导我如何设置
公共函数PPHttpPost($ methodName _,$ nvpStr_){
$environment = 'sandbox';
// Set up your API credentials, PayPal end point, and API version.
$API_UserName = urlencode('sufyan_api1.xcluesiv.com');
$API_Password = urlencode('FQP8TTSXK8QHRCTM');
$API_Signature = urlencode('Ap7D643r8OUdvdzrOomgF0ATl.qSAygx3ERPaDvqm0umQ6aZwiX3t3r5');
$API_Endpoint = "https://api-3t.paypal.com/nvp";
if("sandbox" === $environment || "beta-sandbox" === $environment) {
$API_Endpoint = "https://api-3t.$environment.paypal.com/nvp";
}
$version = urlencode('51.0');
// Set the curl parameters.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
// Turn off the server and peer verification (TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); …Run Code Online (Sandbox Code Playgroud) 我们公司的系统每周通过Paypal和dwolla提供的API向人们发送数百笔小额付款(通常为5至100美元)。google wallet的API是否提供等效功能?
似乎新的payout(包括批处理)端点或多或少与旧MassPay功能匹配.费用结构似乎匹配,payouts在美国境内转让有利.甚至一些事件也会记录为MassPay.出于所有实际目的,它似乎payouts是要取代的MassPay.
我无法找到的是PayPal对此的明确声明.我从一开始payouts就通过技术和一般支持文档寻找了一个公告,并且通常在我能想到的每个地方.
显然,这种声明的缺乏可以说明一切.它似乎不应该是这种情况.
有没有人看到我可以参考的官方声明?或者,如果PayPal人正在倾听,这样的陈述是否可能?
有些事情,"PayPal鼓励开发人员使用REST API的Payout端点构建需要MassPay功能的新系统"
谢谢!
masspay ×5
paypal ×5
api ×1
codeigniter ×1
dwolla ×1
java ×1
p2p ×1
paypal-ipn ×1
php ×1
rest ×1