diff --git a/src/Amazon/Validator.php b/src/Amazon/Validator.php index 2006a89..bdf201f 100755 --- a/src/Amazon/Validator.php +++ b/src/Amazon/Validator.php @@ -8,8 +8,8 @@ class Validator { - const ENDPOINT_SANDBOX = 'http://localhost:8080/RVSSandbox'; - const ENDPOINT_PRODUCTION = 'https://appstore-sdk.amazon.com/version/1.0/verifyReceiptId'; + const ENDPOINT_SANDBOX = 'http://localhost:8080/RVSSandbox/'; + const ENDPOINT_PRODUCTION = 'https://appstore-sdk.amazon.com/version/1.0/verifyReceiptId/'; /** * endpoint url. @@ -153,7 +153,7 @@ public function validate() try { $httpResponse = $this->getClient()->request( 'GET', - sprintf('/developer/%s/user/%s/receiptId/%s', $this->developerSecret, $this->userId, $this->receiptId) + sprintf('developer/%s/user/%s/receiptId/%s', $this->developerSecret, $this->userId, $this->receiptId) ); return new Response($httpResponse->getStatusCode(), json_decode($httpResponse->getBody(), true));