diff --git a/app/Lib/Transaction/Type/EbayTransaction.php b/app/Lib/Transaction/Type/EbayTransaction.php index 4e0d4e773..332901f73 100644 --- a/app/Lib/Transaction/Type/EbayTransaction.php +++ b/app/Lib/Transaction/Type/EbayTransaction.php @@ -116,9 +116,13 @@ public function processTransaction($data, $user) { //261217151509 ended unsold // setting returnall for now but we will need see performance - $params = array('Version' => 821, 'ItemID' => $data['Listing']['ext_item_id'], 'DetailLevel' => 'ReturnAll'); + $params = array('Version' => 821, 'ItemID' => $data['Listing']['ext_item_id'], 'DetailLevel' => 'ReturnAll', 'AffiliateTrackingDetails' => array('TrackingID' => '5337341146', 'TrackingPartnerCode' => 9)); + + debug($params); // make the API call $responseObj = $client->__soapCall($apiCall, array($params), null, $header); + + debug( $responseObj); // only process if Ack is success if ($responseObj->Ack !== 'Success') { @@ -167,7 +171,7 @@ public function processTransaction($data, $user) { $data['Listing']['listing_name'] = $responseObj->Item->Title; $data['Listing']['quantity'] = $responseObj->Item->Quantity; $data['Listing']['quantity_sold'] = $responseObj->Item->SellingStatus->QuantitySold; - $data['Listing']['url'] = $responseObj->Item->ListingDetails->ViewItemURLForNaturalSearch; + $data['Listing']['url'] = $responseObj->Item->ListingDetails->ViewItemURLForNaturalSearch . '&campid=5337341146&customid=&toolid=10001'; if (isset($responseObj->Item->ConditionID)) { $data['Listing']['condition_ext_id'] = $responseObj->Item->ConditionID;