【问题标题】:Creating paypal invoice with agelleye: error 520002使用agelleye 创建贝宝发票:错误 520002
【发布时间】:2014-08-22 11:50:38
【问题描述】:

当我尝试创建和发送发票时,我收到一个错误,520002 - 来自 PayPal 的内部错误。 我可以用 ci-merchant 做到这一点,但不能用 angelleye(用于 codeigniter)。当我尝试创建它时,出现以下错误:

<?xml version="1.0" encoding="utf-8"?>
<CreateAndSendInvoiceRequest xmlns="http://svcs.paypal.com/types/ap">
    <requestEnvelope xmlns="">
        <detailLevel>ReturnAll</detailLevel>
        <errorLanguage>en_US</errorLanguage>
    </requestEnvelope>
    <invoice xmlns="">
        <merchantEmail xmlns="">lalanzaos@gmail.com</merchantEmail>
        <payerEmail xmlns="">oscar73@gmail.com</payerEmail>
        <itemList xmlns="">
            <item xmlns="">
                <name xmlns="">Clases de idiomas (Español)</name>
                <description xmlns="">Dia/s: 2014-08-08</description>
                <date xmlns="">2014-08-22</date>
                <quantity xmlns="">1</quantity><unitPrice xmlns="">11.00</unitPrice>
            </item>
        </itemList>
        <currencyCode xmlns="">USD</currencyCode>
        <invoiceDate xmlns="">2014-08-22</invoiceDate>
        <dueDate xmlns="">2014-08-22</dueDate>
        <referrerCode xmlns="">AngellEYE_PHPClass</referrerCode>
    </invoice>
</CreateAndSendInvoiceRequest>




<?xml version='1.0' encoding='UTF-8'?>
<ns3:FaultMessage xmlns:ns3="http://svcs.paypal.com/types/common" xmlns:ns2="http://svcs.paypal.com/types/pt">
    <responseEnvelope>
        <timestamp>2014-08-22T04:12:25.170-07:00</timestamp>
        <ack>Failure</ack>
        <correlationId>87f10d36a1e29</correlationId>
        <build>11737381</build>
    </responseEnvelope>
    <error>
        <errorId>520002</errorId>
        <domain>PLATFORM</domain>
        <subdomain>Application</subdomain>
        <severity>Error</severity>
        <category>Application</category>
        <message>Internal Error</message>
    </error>
</ns3:FaultMessage>

【问题讨论】:

    标签: php codeigniter paypal


    【解决方案1】:

    似乎没有正确传递日期格式。它应该如下所示:

    <invoiceDate xmlns="">2014-08-23T22:33:35</invoiceDate>
    
    <dueDate xmlns="">2014-08-24T22:33:35</dueDate>
    

    这种格式应该可以正常工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-02
      • 2014-03-21
      • 2014-03-22
      • 2013-06-15
      • 1970-01-01
      • 2015-12-10
      • 1970-01-01
      • 2016-07-07
      相关资源
      最近更新 更多