Codeigniter [Angelleye图书馆]:"接收方PayPal账户必须是唯一的"错误

时间:2016-03-04 09:35:43

标签: codeigniter paypal

我使用了angelleye / paypal-codeigniter API在我的Codeigniter项目中实现了Paypal自适应支付。 我有类似https://ci.angelleye.com/paypal/samples/demo/ ON MY LOCALHOST

的设置

我有开发人员paypal帐户,其中有2个商家沙盒帐户和一个发件人沙箱帐户。付款时我将资金从发件人转移到2个收件人。

在我的本地主机上,我点击了该页面上提到的三个图书馆(Payments Pro,Adaptive Payments,PayFlow)的自适应付款链接。一切都很好,直到一段时间回来。

但不幸的是现在点击了自适应支付链接,我在$ 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>

    )

我发送的请求是

$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' 
);

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

0 个答案:

没有答案