Skip to content

Commit

Permalink
Update URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpoulter committed Jun 18, 2024
1 parent 2f2dfe7 commit 1edc54e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Total Downloads](https://img.shields.io/packagist/dt/simplesquid/vend-sdk.svg?style=flat-square)](https://packagist.org/packages/simplesquid/vend-sdk)

An unofficial PHP SDK for the [Lightspeed Retail (X-Series)](https://docs.vendhq.com/) (formally Vend).
An unofficial PHP SDK for the [Lightspeed Retail (X-Series)](https://x-series-api.lightspeedhq.com/) (formally Vend).

## Installation

Expand Down
4 changes: 2 additions & 2 deletions src/VendAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class VendAuth extends VendConnector
public function resolveBaseUrl(): string
{
if (is_null($this->domainPrefix)) {
return 'https://secure.vendhq.com';
return 'https://secure.retail.lightspeed.app';
}

return "https://{$this->domainPrefix}.vendhq.com/api";
return "https://{$this->domainPrefix}.retail.lightspeed.app/api";
}
}
4 changes: 2 additions & 2 deletions src/VendConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function resolveBaseUrl(): string
throw new DomainPrefixMissingException();
}

return "https://{$this->domainPrefix}.vendhq.com/api";
return "https://{$this->domainPrefix}.retail.lightspeed.app/api";
}

public function withDomainPrefix(?string $domainPrefix): static
Expand Down Expand Up @@ -76,7 +76,7 @@ protected function defaultHeaders(): array
protected function defaultOauthConfig(): OAuthConfig
{
return OAuthConfig::make()
->setAuthorizeEndpoint('https://secure.vendhq.com/connect')
->setAuthorizeEndpoint('https://secure.retail.lightspeed.app/connect')
->setTokenEndpoint('/1.0/token')
->setUserEndpoint('/2.0/retailer');
}
Expand Down

0 comments on commit 1edc54e

Please sign in to comment.