getTransactionReference() . $this->getClientSecret() ); } public function getTransactionReference() { return $this->httpRequest->query->get('trxid'); } public function getData() { $data = array( "clientId" => $this->getClientId(), "transactionId" => $this->getTransactionReference(), "sha1" => $this->generateSignature() ); return $data; } public function sendData($data) { $httpResponse = $this->httpClient->post($this->endpoint, null, $data)->send(); return $this->response = new CompletePurchaseResponse($this, $httpResponse->json()); } }