davidtsadler / ebay-sdk-examples

Several examples of using the eBay SDK for PHP
http://devbay.net
Apache License 2.0
184 stars 100 forks source link

Trading API: Not able to update price #97

Closed anknegi closed 4 years ago

anknegi commented 4 years ago

Hi,

I am using your code of file : revise-item.php

Everything is working fine. But the price of product is not updating. My reviseItemType function is given below : public function reviseItemType($request) {
$item = new ItemType();
$item->SKU = $request['sku'];
$item->Quantity = (Integer)$request['quantity'];
$item->StartPrice = new AmountType(['value' => (Double)$request['price']]);

    $item->Title = (String) $request['productname'];
    $item->Description = (String) $request['description'];
    $item->Country = 'AU';
    $item->Location = 'Norfolk Island';
    $item->PostalCode = '2899';
    $item->Currency = 'USD'; 
    return $item;

}

Is I am missing anything ?