PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » Services_Ebay » Bug #4181

AddItem problem

Details

Submitted2005-04-19 16:56 UTC
Fromczambran at gmail dot com
Assignedschst
StatusClosed
PackageServices_Ebay
PHP Version4.3.11
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-04-19 16:56 UTC] czambran at gmail dot com

Description:
------------
The AddItem throws an error even when the result xml from ebay just contains warnings. This is a problem because the Item will get added but there is no way to get the Id that ebay assigned to that item.

[2005-04-19 17:42 UTC] czambran at gmail dot com

Lets say the Item that is going to be passed to AddItem is being assigned the following properties:
[AmEx] => 1
[Border] => 1
[BoldTitle] => 1
[BuyItNowPrice] => 25.32
[CashOnPickupAccepted] => 1
[Category] => 2228
[Category2] => 378
[CategoryMappingAllowed] => 1
[CheckoutDetailsSpecified] => 1
[CheckoutInstructions] => This is test of checkout Instructions
[Counter] => 1
[Country] => US
[Currency] => $
[Description] => This book is awesome.
[Duration] => 10
[Gallery] => 1
[GalleryURL] => http://69.66.137.101:8080/phpnuke/html/images/new_day.gif
[GiftIcon] => 1
[Highlight] => 1
[InsuranceFee] => 0.50
[Location] => 52556
[MinimumBid] => 1.50
[Quantity] => 1
[ReservePrice] => 5.30
[ShippingType] => 1
[Title] => Beggining CSS
[Type] => 1
[ShipToLocations] => Array
(
[ShipToLocation] => Array
(
[0] => US
[1] => DE
[2] => GB
)

)

[ShippingServiceOptions] => Array
(
[ShippingServiceOption] => Array
(
[0] => Array
(
[ShippingService] => 1
[ShippingServicePriority] => 1
[ShippingServiceCost] => 3
[ShippingServiceAdditionalCost] => 1
)

)

)

now, you will probably notice that I have set the property CashOnPickupAccepted which is not valid when adding to the ebay US site. Try running it and you will see u will get an error, which will lead u to believe that the item wasn't added when actually it was added. This is how the xml looks like
array(3) {
["EBayTime"]=>
string(19) "2005-04-19 17:35:13"
["Item"]=>
array(4) {
["StartTime"]=>
string(19) "2005-04-19 17:35:13"
["Id"]=>
string(10) "4502567377"
["EndTime"]=>
string(19) "2005-04-29 17:35:13"
["Fees"]=>
array(22) {
["InsertionFee"]=>
string(4) "0.70"
["ListingDesignerFee"]=>
string(4) "0.00"
["ListingFee"]=>
string(5) "21.70"
["AuctionLengthFee"]=>
string(4) "0.00"
["GiftIconFee"]=>
string(4) "0.50"
["CategoryFeaturedFee"]=>
string(4) "0.00"
["BorderFee"]=>
string(4) "6.00"
["ReserveFee"]=>
string(4) "2.00"
["HighLightFee"]=>
string(5) "10.00"
["FeaturedFee"]=>
string(4) "0.00"
["BoldFee"]=>
string(4) "2.00"
["FeaturedGalleryFee"]=>
string(4) "0.00"
["InternationalInsertionFee"]=>
string(4) "0.00"
["BuyItNowFee"]=>
string(4) "0.00"
["GalleryFee"]=>
string(4) "0.50"
["PhotoFee"]=>
string(4) "0.00"
["ProPackBundleFee"]=>
string(4) "0.00"
["PhotoDisplayFee"]=>
string(4) "0.00"
["CurrencyId"]=>
string(1) "1"
["SchedulingFee"]=>
string(4) "0.00"
["FixedPriceDurationFee"]=>
string(4) "0.00"
["SubtitleFee"]=>
string(4) "0.00"
}
}
["Errors"]=>
array(1) {
["Error"]=>
array(1) {
[0]=>
array(8) {
["Code"]=>
string(5) "10128"
["SeverityCode"]=>
string(1) "2"
["Severity"]=>
string(7) "Warning"
["Line"]=>
string(1) "0"
["Column"]=>
string(1) "0"
["ErrorClass"]=>
string(12) "RequestError"
["ShortMessage"]=>
string(23) "Invalid Payment Method."
["LongMessage"]=>
string(107) "Payment Method <CashOnPickupAccepted> is not supported on this site. It has been removed from the listing."
}
}
}
}
A error of level warning is returned by the Ebay API, and this is how warnings are defined by the Ebay API documentation:
Warnings

When the error is only a warning, the data the function would ordinarily return is still produced, but the data result set is prefixed with an error result set