Skip to content

Commit

Permalink
Merge pull request #126 from calbro7/master
Browse files Browse the repository at this point in the history
Fix issue where Guzzle client would not recognise full base_uri due to missing backslash
  • Loading branch information
aporat authored Aug 18, 2020
2 parents 6271f78 + d5a9835 commit 90b15a5
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 90b15a5

Please sign in to comment.