Paypal和AngellEye Library:您必须只指定一个主接收器和至少一个辅助接收器

时间:2014-04-21 05:14:30

标签: php codeigniter paypal-adaptive-payments

我正在使用AngellEye Library向Paypal中的单个接收者发送测试付款。我能够成功申请自适应付款授权,但每当我发送付款时都会收到错误:

Array
(
    [Errors] => Array
        (
            [0] => Array
                (
                    [Receiver] => 
                    [Category] => Application
                    [Domain] => PLATFORM
                    [ErrorID] => 579008
                    [ExceptionID] => 
                    [Message] => You must specify only one primary receiver and at least one secondary receiver
                    [Parameter] => 1
                    [Severity] => Error
                    [Subdomain] => Application
                )

        )

    [Ack] => Failure
    [Build] => 10273932
    [CorrelationID] => 91304768d2d3b
    [Timestamp] => 2014-04-20T22:06:56.756-07:00
    [PayKey] => 
    [PaymentExecStatus] => 
    [RedirectURL] => 
    [XMLRequest] => ReturnAllen_USPAYhttp://mydomain.com/user?tab=financialAPP-80W284485P519543T1Seller112.198.82.212USDEACHRECEIVERCraftersHub.Com Affiliate PaymentPA-3YM23894VM185730A10000.00usb_1329725429_biz@angelleye.com1398056815SERVICE1mail@mydomain.comhttp://mydomain.com/paypal/authorizesuccess?d=mail@mydomain.com1mail@mydomain.com1398056815
    [XMLResponse] => 2014-04-20T22:06:56.756-07:00Failure91304768d2d3b10273932579008PLATFORMApplicationErrorApplicationYou must specify only one primary receiver and at least one secondary receiver1
)

我发送的付款参数如下:

Array
(
    [PayRequestFields] => Array
        (
            [ActionType] => PAY
            [CancelURL] => http://mydomain.com/user?tab=financial
            [CurrencyCode] => USD
            [FeesPayer] => EACHRECEIVER
            [IPNNotificationURL] => 
            [Memo] => mydomain.com Affiliate Payment
            [Pin] => 
            [PreapprovalKey] => PA-3YM23894VM185730A
            [ReturnURL] => http://mydomain.com/paypal/authorizesuccess?d=mail@mydomain.com
            [ReverseAllParallelPaymentsOnError] => 1
            [SenderEmail] => mail@jmydomain.com
            [TrackingID] => 1398056815
        )

    [ClientDetailsFields] => Array
        (
            [CustomerID] => 1
            [CustomerType] => Seller
            [GeoLocation] => 
            [Model] => 
            [PartnerName] => 
        )

    [Receivers] => Array
        (
            [0] => Array
                (
                    [Amount] => 10000.00
                    [Email] => usb_1329725429_biz@angelleye.com
                    [InvoiceID] => 1398056815
                    [PaymentType] => SERVICE
                    [PaymentSubType] => 
                    [Phone] => Array
                        (
                            [CountryCode] => 
                            [PhoneNumber] => 
                            [Extension] => 
                        )

                    [Primary] => 1
                )

        )

    [SenderIdentifierFields] => Array
        (
            [UseCredentials] => 
        )

    [AccountIdentifierFields] => Array
        (
            [Email] => mail@mydomain.com
            [Phone] => Array
                (
                    [CountryCode] => 
                    [PhoneNumber] => 
                    [Extension] => 
                )

        )

)

有人能指出我能做到这一点吗?感谢。

2 个答案:

答案 0 :(得分:3)

我遇到了同样的问题,修正了将主要版本设为空白...'Primary'=> ''

答案 1 :(得分:1)

你需要改变[FeesPayer] =>发件人和[主要] => '假' 。这告诉api只有一个发送者和一个接收者。点击此处https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APIntro/了解更多信息 试试这个:

     Array
     (
       [PayRequestFields] => Array
     (
        [ActionType] => PAY
        [CancelURL] => http://example.com/user?tab=financial
        [CurrencyCode] => USD
        [FeesPayer] => sender
        [IPNNotificationURL] => 
        [Memo] => example.com Affiliate Payment
        [Pin] => 
        [PreapprovalKey] => PA-3YM23894VM185730A
        [ReturnURL] => http://example.com/paypal/authorizesuccess?d=mail@mydomain.com
        [ReverseAllParallelPaymentsOnError] => 1
        [SenderEmail] => mail@jexample.com
        [TrackingID] => 1398056815
    )

[ClientDetailsFields] => Array
    (
        [CustomerID] => 1
        [CustomerType] => Seller
        [GeoLocation] => 
        [Model] => 
        [PartnerName] => 
    )

[Receivers] => Array
    (
        [0] => Array
            (
                [Amount] => 10000.00
                [Email] => usb_1329725429_biz@angelleye.com
                [InvoiceID] => 1398056815
                [PaymentType] => SERVICE
                [PaymentSubType] => 
                [Phone] => Array
                    (
                        [CountryCode] => 
                        [PhoneNumber] => 
                        [Extension] => 
                    )

                [Primary] => 'false'
            )

    )

[SenderIdentifierFields] => Array
    (
        [UseCredentials] => 
    )

[AccountIdentifierFields] => Array
    (
        [Email] => mail@example.com
        [Phone] => Array
            (
                [CountryCode] => 
                [PhoneNumber] => 
                [Extension] => 
            )

    )