2014-10-20 82 views
1

我正在使用Paypal ExpressCheckout方法支付我的付款。我需要使用Express Payout支付并行付款来支付多个商家的费用。我已经阅读了教程。当我提交时,我收到错误。我发送的数据是使用并行付款的Paypal Express结账

&METHOD=SetExpressCheckout 
&RETURNURL=http%3A%2F%2Fwww.mydomain.net%2Fpaypal_process.php 
&CANCELURL=http%3A%2F%2Fwww.mydomain.net%2Fcancel.php 
&PAYMENTREQUEST_0_CURRENCYCODE=SGD 
&PAYMENTREQUEST_0_AMT=50 
&PAYMENTREQUEST_0_ITEMAMT=50 
&[email protected] 
&PAYMENTREQUEST_0_PAYMENTACTION=Sale 
&PAYMENTREQUEST_0_PAYMENTREQUESTID=CART26488-PAYMENT0 
&L_PAYMENTREQUEST_0_NAME0=Depart San Jose Feb 12 at 12:10PM Arrive in Baltimore at 10:22PM 
&L_PAYMENTREQUEST_0_NUMBER0=Flight 522 
&L_PAYMENTREQUEST_0_QTY0=1 
&L_PAYMENTREQUEST_0_AMT0=50 
&L_PAYMENTREQUEST_0_DESC0=SJC Terminal 1. Flight time: 7 hours 12 minutes 

错误:

Error : This account is not approved for the authorization service. To enable this service, contact PayPal customer service 

Array 
(
    [TIMESTAMP] => 2014%2d10%2d20T09%3a36%3a03Z 
    [CORRELATIONID] => 4a7ab68babd8b 
    [ACK] => Failure 
    [VERSION] => 109%2e0 
    [BUILD] => 13443904 
    [L_ERRORCODE0] => 11623 
    [L_SHORTMESSAGE0] => This%20account%20is%20not%20approved%20for%20the%20authorization%20service%2e 
    [L_LONGMESSAGE0] => This%20account%20is%20not%20approved%20for%20the%20authorization%20service%2e%20To%20enable%20this%20service%2c%20contact%20PayPal%20customer%20service 
    [L_SEVERITYCODE0] => Error 
) 

我已经通过互联网冲浪有关此错误。但我找不到那个。请帮我实现这一点。

回答

3

从完全基础知识冲浪后,我找到了答案。 PAYMENTREQUEST_0_PAYMENTACTION参数值应在发送之前进行网址编码。

"PAYMENTREQUEST_0_PAYMENTACTION='".urlencode("Sale") 
-1

这是因为电子邮件地址PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID[email protected]未被确认。 尝试确认电子邮件地址并再次执行API调用。