我正在使用AngellEye库将测试付款发送到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] => 
                )

        )

)

有人可以指出我该怎么做吗? 谢谢。

===============>>#1 票数:3

我遇到了同样的问题,已解决了将primary置于空白...'Primary'=>''

===============>>#2 票数:1 已采纳

您需要更改[FeesPayer] =>发送者和[Primary] =>'false'。 这告诉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] => 
            )

    )

  ask by Jhourlad Estrella translate from so

未解决问题?本站智能推荐: