getTransactionId() . $this->getAmountInteger() . $this->getClientSecret() ); } public function getData() { $this->validate( 'amount', 'transactionId', 'returnUrl' ); $data = array( "clientId" => $this->getClientId(), "transactionId" => $this->getTransactionId(), "amount" => $this->getAmountInteger(), "description" => $this->getDescription(), "returnUrl" => $this->getReturnUrl(), "sha1" => $this->generateSignature() ); return $data; } public function sendData($data) { $httpResponse = $this->httpClient->post($this->endpoint, null, $data)->send(); return $this->response = new PurchaseResponse($this, $httpResponse->json()); } }