dongyanhu5628 2014-04-21 05:14
浏览 30
已采纳

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

I am using AngellEye Library to send a test payment to a single receiver in Paypal. I was able to successfully request an adaptive payment authorization but is getting an error whenever I send a payment:

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
)

The parameters I am sending to pay is below:

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] => 
                )

        )

)

Can anybody point out how I could accomplish this? Thanks.

  • 写回答

2条回答 默认 最新

  • donglu1971 2016-08-15 10:07
    关注

    u need to change [FeesPayer] => sender and [Primary] => 'false' . this tells the api that there is only one sender and one receiver. check here https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APIntro/ for more info try this :

         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] => 
                )
    
        )
    

    )

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配