Skip to content

Commit

Permalink
Fix issue where Guzzle client would not recognise full base_uri due t…
Browse files Browse the repository at this point in the history
…o missing backslash
  • Loading branch information
calbro7 committed Aug 18, 2020
1 parent 6271f78 commit d5a9835
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Amazon/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit d5a9835

Please sign in to comment.