Skip to content

Conversation

camspanos
Copy link

@camspanos camspanos commented Feb 9, 2024

Remove the hardcoded const. The config already has the host set. Now we can use the setHost method to switch to sandbox host.

Now you can set the host to sandbox like this with the configuration:

$this->configuration = new Configuration([
    'clientId' => $clientId,
    'clientSecret' => $clientSecret,
]);
$this->configuration->setHost('https://sandbox.walmartapis.com');

…ed const. The config already has the host set. Now we can use the setHost method to switch to sandbox host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant