diff --git a/src/ReceiptValidator/iTunes/Validator.php b/src/ReceiptValidator/iTunes/Validator.php index 55a28e6..cb2fc2e 100755 --- a/src/ReceiptValidator/iTunes/Validator.php +++ b/src/ReceiptValidator/iTunes/Validator.php @@ -167,7 +167,7 @@ public function validate($receiptData = null, $iStoreSharedSecret = null) $this->setIStoreSharedSecret($iStoreSharedSecret); } - $httpResponse = $this->getClient()->post(null, null, $this->encodeRequest(), array('verify' => false))->send(); + $httpResponse = $this->getClient()->post(null, null, $this->encodeRequest())->send(); if ($httpResponse->getStatusCode() != 200) { throw new RunTimeException('Unable to get response from itunes server'); @@ -180,7 +180,7 @@ public function validate($receiptData = null, $iStoreSharedSecret = null) if ($this->_endpoint == self::ENDPOINT_PRODUCTION && $response->getResultCode() == Response::RESULT_SANDBOX_RECEIPT_SENT_TO_PRODUCTION) { $client = new GuzzleClient(self::ENDPOINT_SANDBOX); - $httpResponse = $client->post(null, null, $this->encodeRequest(), array('verify' => false))->send(); + $httpResponse = $client->post(null, null, $this->encodeRequest())->send(); if ($httpResponse->getStatusCode() != 200) { throw new RunTimeException('Unable to get response from itunes server');