Skip to content

Commit

Permalink
#173 not sure if this is how you are supposed to do it but fuck it, w…
Browse files Browse the repository at this point in the history
…orth a try

Signed-off-by: Tyler Cvetan <[email protected]>
  • Loading branch information
SomethingSexy committed Jan 23, 2015
1 parent 560ff1c commit f2c83ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Lib/Transaction/Type/EbayTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f2c83ef

Please sign in to comment.