我正在尝试将IPN设置为已发货,但我收到20822错误。这是我的XMLRequest:
<?xml version="1.0" encoding="utf-8" ?>
<CompleteSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<Version>869</Version>
<ItemID> $item_number </ItemID>
<TransactionID>$txn_id</TransactionID>
<FeedbackInfo>
<CommentText>Great transaction, great buyer!</CommentText>
<CommentType>Positive</CommentType>
<TargetUser>$auction_buyer_id</TargetUser>
</FeedbackInfo>
<Shipped>true</Shipped>
<Paid>true</Paid>
<RequesterCredentials>
<eBayAuthToken> $my_token </eBayAuthToken>
</RequesterCredentials>
</CompleteSaleRequest>
$ auction_buyer_id,$ item_number和$ txn_id来自ipn,我检查了它们,我认为它们很好。 ebay的回应如下:
<?xml version="1.0" encoding="UTF-8"?>
<CompleteSaleResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2014-05-29T10:41:35.147Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Invalid ItemID or TransactionID</ShortMessage>
<LongMessage>Invalid ItemID or TransactionID</LongMessage>
<ErrorCode>20822</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>873</Version>
<Build>E873_CORE_APIXO_16844666_R1</Build>
</CompleteSaleResponse>
我在互联网上搜索,我无法找到解决方案。请帮忙。 感谢。
答案 0 :(得分:1)
我找到了问题的答案
<TransactionID>
不应该是$txn_id
(就像在教程中一样),但是$ebay_txn_id
(当我将从ipn发布的所有变量发送到我的电子邮件端搜索时,我发现了这个变量)