Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Codeigniter[Angeleye图书馆]:“;收款人贝宝账户必须是唯一的”;错误_Codeigniter_Paypal - Fatal编程技术网

Codeigniter[Angeleye图书馆]:“;收款人贝宝账户必须是唯一的”;错误

Codeigniter[Angeleye图书馆]:“;收款人贝宝账户必须是唯一的”;错误,codeigniter,paypal,Codeigniter,Paypal,我在我的codeigniter项目中使用了Angeleye/paypal codeigniter API来实现paypal自适应支付。 我在本地主机上有类似的设置 我有开发人员贝宝帐户,其中有2个商人沙箱帐户和一个发送者沙箱帐户。付款时,我将资金从发送者转移到2个接收者 在我的本地主机上,我点击了页面上提到的三个库(Payments Pro、Adaptive Payments、PayFlow)中的自适应支付链接。直到不久前,一切都很顺利 但不幸的是,现在点击Adaptive Payment链接,

我在我的codeigniter项目中使用了Angeleye/paypal codeigniter API来实现paypal自适应支付。 我在本地主机上有类似的设置

我有开发人员贝宝帐户,其中有2个商人沙箱帐户和一个发送者沙箱帐户。付款时,我将资金从发送者转移到2个接收者

在我的本地主机上,我点击了页面上提到的三个库(Payments Pro、Adaptive Payments、PayFlow)中的自适应支付链接。直到不久前,一切都很顺利

但不幸的是,现在点击Adaptive Payment链接,我在$PayPalRequestData中得到以下错误作为响应:

 Array
(
['Errors'] => array(
    [0] => Array
    (
        [Receiver] => 
        [Category] => Application
        [Domain] => PLATFORM
        [ErrorID] => 579040
        [ExceptionID] => 
        [Message] => Receiver PayPal accounts must be unique.
        [Parameter] => receiver
        [Severity] => Error
        [Subdomain] => Application
)
  [Ack] => Failure
[Build] => 20420247
[CorrelationID] => 581ecdae58e50
[Timestamp] => 2016-03-04T01:41:05.725-08:00
[PayKey] =>
[PaymentExecStatus] =>
[RedirectURL] =>
[XMLRequest] => <displayed request string>
[XMLResponse] => <displayed response string>
    )

 Array
(
['Errors'] => array(
    [0] => Array
    (
        [Receiver] => 
        [Category] => Application
        [Domain] => PLATFORM
        [ErrorID] => 579017
        [ExceptionID] => 
        [Message] =>The amount for the primary receiver must be greater than
            or equal to the total of other chained receiver amounts
        [Parameter] => receiver
        [Severity] => Error
        [Subdomain] => Application
)
[Ack] => Failure
[Build] => 20420247
[CorrelationID] => d85cb50b00e2e
[Timestamp] => 2016-03-04T01:46:01.853-08:00
[PayKey] => 
[PaymentExecStatus] => 
[RedirectURL] => 
  [XMLRequest] => <displayed request string>
[XMLResponse] => <displayed response string>

    )

有人能告诉我有什么错误吗?以及如何解决这些错误。

Andrew Angell answred:$XMLRequest有两个相同的电子邮件ID,由于这两个ID,出现了错误ID 579040,当链接支付规则出现时,就会出现错误ID 579017。感谢Angeleyealso,这里只能有一个主接收者,我可以看到你正在发送两个的Primary=true。我通过我的支持电子邮件与@Vinay一起解决了这个问题。结果发现,他在请求中意外地向两个不同的收件人发送了相同的电子邮件帐户。
$Receiver = array(
'Amount' = '12.00', 
'Email' = 'receiver_1@domain.com', 
'InvoiceID' = '123-ABCDEFG', 
'PaymentType' = 'SERVICE', 
'PaymentSubType' = '', 
'Phone' = array('CountryCode' = '', 'PhoneNumber' = '',
'Extension' = ''),
'Primary' = 'true' 
);

$Receiver = array(
'Amount' = '5.00', 
'Email' = 'receiver_2@domain.com', 
'InvoiceID' = '123-ABCDEFG', 
'PaymentType' = 'SERVICE', 
'PaymentSubType' = '', 
'Phone' = array('CountryCode' = '', 'PhoneNumber' = '',
'Extension' = ''),
'Primary' = 'true' 
);