/** * sample_CompleteSale::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call * * @return boolean success */ public function dispatchCall($params) { $req = new CompleteSaleRequestType(); $req->setItemID($params['ItemID']); $req->setTransactionID($params['TransactionID']); $res = $this->proxy->CompleteSale($req); if ($this->testValid($res)) { $this->dumpObject($res); return true; } else { return false; } }
public function endOfSale($params) { $req = new CompleteSaleRequestType(); $this->session->setRequestToken($params['AuthToken']); // Good buyer, prompt payment, valued customer, highly recommended. // Thank you for an easy, pleasant transaction. Excellent buyer. A++++++. // Quick response and fast payment. Perfect! THANKS!! // Hope to deal with you again. Thank you. $feedback = new FeedbackInfoType(); $feedback->setCommentText("Quick response and fast payment. Perfect! THANKS!!"); $feedback->setCommentType("Positive"); $feedback->setTargetUser($params['TargetUser']); // $req->setFeedbackInfo($feedback); $req->setOrderID($params['OrderID']); $req->setItemID($params['ItemID']); $req->setTransactionID($params['TransactionID']); $req->setShipped(true); $req->setPaid(true); $res = $this->proxy->CompleteSale($req); if ($this->testValid($res)) { return true; } else { $this->dumpObject($res); return false; } }
/** * @return CompleteSaleResponseType * @param CompleteSaleRequestType $request */ function CompleteSale($request) { $request->setVersion(EBAY_WSDL_VERSION); return $this->call('CompleteSale', $request); }