dongshimao7115 2013-10-09 15:49
浏览 60

paypal错误错误代码:580022 paypal自适应并行支付

I am trying to make parallel payment using palypal adaptive API. I am sending this array.

Array
(
    [requestEnvelope.errorLanguage] => en_US
    [actionType] => PAY
    [cancelUrl] => http://www.consumersinchrist.org/
    [returnUrl] => http://www.consumersinchrist.org/
    [currencyCode] => USD
    [receiverList.receiver(0).email] => xxx@gxxil.com
    [receiverList.receiver(0).amount] => 3.00
    [receiverList.receiver(1).email] => sxxh.banerjee@xxe.com
    [receiverList.receiver(1).amount] => 56.00
)

The code I am using..

$body_data = http_build_query($bodyparams, "", chr(38));


                    try
                    {

                    //create request and add headers
                    $params = array("http" => array(
                    "method" => "POST",
                    "content" => $body_data,
                    "header" => "X-PAYPAL-SECURITY-USERID: " . $API_UserName . "
" .
                    "X-PAYPAL-SECURITY-SIGNATURE: " . $API_Signature . "
" .
                    "X-PAYPAL-SECURITY-PASSWORD: " . $API_Password . "
" .
                    "X-PAYPAL-APPLICATION-ID: " . $API_AppID . "
" .
                    "X-PAYPAL-REQUEST-DATA-FORMAT: " . $API_RequestFormat . "
" .
                    "X-PAYPAL-RESPONSE-DATA-FORMAT: " . $API_ResponseFormat . "
"
                    ));


                    //create stream context
                    $ctx = stream_context_create($params);


                    //open the stream and send request
                    $fp = @fopen($url, "r", false, $ctx);

                    //get response
                    $response = stream_get_contents($fp);

                    //check to see if stream is open
                    if ($response === false) {
                    throw new Exception("php error message = " . "$php_errormsg");
                    }

                    //close the stream
                    fclose($fp);

But I am getting this error:

ERROR Code: 580022 
ERROR Message: Invalid request parameter: receiverList cannot be null 

Anyone please help.

  • 写回答

1条回答 默认 最新

  • drg14799 2013-10-22 04:35
    关注

    Can you please share the debug/correlation id when you get the error response ? The error message indicates that you request does not have receiver list at all which is contradictory to your request which has the receivers.

    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值