2014-11-08 151 views
0

得到錯誤像下面同時使用下面的代碼 **從eBay的服務器響應如下易趣交易API「的AddItem」付款方式缺少錯誤

SimpleXMLElement Object 
(
[Timestamp] => 2014-11-08T13:13:09.853Z 
[Ack] => Failure 
[Errors] => Array 
    (
     [0] => SimpleXMLElement Object 
      (
       [ShortMessage] => Payment method is not valid. 
       [LongMessage] => The payment method selected is no longer available. 
       [ErrorCode] => 10128 
       [SeverityCode] => Warning 
       [ErrorParameters] => SimpleXMLElement Object 
        (
         [@attributes] => Array 
          (
           [ParamID] => 0 
          ) 

         [Value] => 
        ) 

       [ErrorClassification] => RequestError 
      ) 

     [1] => SimpleXMLElement Object 
      (
       [ShortMessage] => Sales tax has been dropped. 
       [LongMessage] => Sales tax/ VAT was dropped from the listing  as per the new Sales Tax/VAT policy. The item was/will be listed successfully. You may revise the listing to specify an all inclusive price. 
       [ErrorCode] => 20233 
       [SeverityCode] => Warning 
       [ErrorClassification] => RequestError 
      ) 

     [2] => SimpleXMLElement Object 
      (
       [ShortMessage] => Payment method is missing. 
       [LongMessage] => You must choose at least one payment method. 
       [ErrorCode] => 354 
       [SeverityCode] => Error 
       [ErrorClassification] => RequestError 
      ) 

     [3] => SimpleXMLElement Object 
      (
       [ShortMessage] => Return policy is not supported. 
       [LongMessage] => Return policy is not supported for this category. 
       [ErrorCode] => 21916329 
       [SeverityCode] => Warning 
       [ErrorClassification] => RequestError 
      ) 

    ) 

[Version] => 897 
[Build] => E897_UNI_API5_17253832_R1 
) 
/****************************************************************/ 

//下面的代碼,我們正試圖在ebay上ADDITEM商家帳戶,並獲得 錯誤消息

回覆關於這條信息的一些答案。我很欣賞並期待你們的到來。

$email = '[email protected]'; 
$ShippingService = 'IN_Express'; 
$CountryCode = 'IN'; 
$Currency = 'INR'; 
$Location = 'Coimbatore'; 
$Category = '174231'; 
$PostalCode = 'mypostalcode'; 
$PaymentMethod = 'IntegratedMerchantCreditCard'; 
/* 
* Either one of this CreditCard, CashOnPickup or CCAccepted; 
*/ 

$requestBody = <?xml version="1.0" encoding="utf-8"?> 
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents"> 
<RequesterCredentials> 
<eBayAuthToken>'.$token.'</eBayAuthToken> 
    </RequesterCredentials> 
    <ErrorLanguage>en_US</ErrorLanguage> 
    <WarningLevel>High</WarningLevel> 
    <Item> 
    <Title>Harry Potter and the Philosopher\'s Stone</Title> 
<Description> 
    This is the first book in the Harry Potter series. In excellent condition! 
</Description> 
<PrimaryCategory> 
    <CategoryID>'.$Category.'</CategoryID> 
</PrimaryCategory> 
<StartPrice>1.0</StartPrice> 
<CategoryMappingAllowed>true</CategoryMappingAllowed> 
<ConditionID>4000</ConditionID> 
<Country>'.$CountryCode.'</Country> 
<Currency>'.$Currency.'</Currency> 
<DispatchTimeMax>3</DispatchTimeMax> 
<ListingDuration>Days_7</ListingDuration> 
<ListingType>Chinese</ListingType> 
<PaymentMethods>'.$PaymentMethod.'</PaymentMethods> 
<!--PayPalEmailAddress>'.$email.'</PayPalEmailAddress--> 
<PictureDetails> 
    <PictureURL>http://pics.ebay.com/aw/pics/dot_clear.gif</PictureURL> 
</PictureDetails> 
<PostalCode>'.$PostalCode.'</PostalCode> 
<Quantity>1</Quantity> 
<ReturnPolicy> 
    <ReturnsAcceptedOption>ReturnsAccepted</ReturnsAcceptedOption> 
    <RefundOption>MoneyBack</RefundOption> 
    <ReturnsWithinOption>Days_30</ReturnsWithinOption> 
    <Description>If you are not satisfied, return the book for refund.   </Description> 
    <ShippingCostPaidByOption>Buyer</ShippingCostPaidByOption> 
</ReturnPolicy> 
<ShippingDetails> 
    <ShippingType>Flat</ShippingType> 
    <ShippingServiceOptions> 
    <ShippingServicePriority>1</ShippingServicePriority> 
    <ShippingService>'.$ShippingService.'</ShippingService> 
    <ShippingServiceCost>82.50</ShippingServiceCost> 
    </ShippingServiceOptions> 
</ShippingDetails> 
<Site>US</Site> 
<!--newly added fields--> 
<Location>'.$Location.'</Location> 
</Item> 
</AddItemRequest>; 
</code> 
/****************************************************************/ 

回答

0

按照eBay的關於PaymentMethods文檔(http://developer.ebay.com/devzone/xml/docs/reference/ebay/extra/AddFxdPrcItmRqst.Itm.PymntMthds.html):

IntegratedMerchantCreditCard (輸入/輸出)只能如果賣家的支付網關帳戶添加此付款方式。

請檢查並確保您已啓用您的帳戶以允許使用支付網關。這不是默認設置或配置的。

您可以在此處執行此操作:https://arbd.ebay.com/ws/eBayISAPI.dll?SetUpPaymentGatewaySignupPage