Skip to content

Commit

Permalink
add North America region
Browse files Browse the repository at this point in the history
  • Loading branch information
macbookandrew committed Mar 12, 2024
1 parent 02aa3ac commit c91b03e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Clover/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function getApiDomain(): string
return match ($this->getConfig('environment')) {
'sandbox' => 'sandbox.dev.clover.com',
'europe' => 'api.eu.clover.com',
'latin-america' => 'api.la.clover.com',
'latin_america' => 'api.la.clover.com',
default => 'api.clover.com',
};
}
Expand All @@ -76,6 +76,8 @@ protected function getTokenUrl(): string
{
$domain = match ($this->getConfig('environment')) {
'sandbox' => 'apisandbox.dev.clover.com',
'europe' => 'eu.clover.com',
'latin_america' => 'la.clover.com',
default => 'api.clover.com',
};

Expand Down
2 changes: 1 addition & 1 deletion src/Clover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Ensure the app has permission to read employees.
'client_id' => env('CLOVER_CLIENT_ID'),
'client_secret' => env('CLOVER_CLIENT_SECRET'),
'redirect' => env('CLOVER_REDIRECT_URI')
'environment' => env('CLOVER_ENVIRONMENT', 'production'), // one of the following: 'sandbox', 'production' (for US/Canada), 'europe', or 'latin-america'
'environment' => env('CLOVER_ENVIRONMENT', 'north_america'), // one of the following: 'sandbox', 'north_america' (for US/Canada), 'europe', or 'latin_america'
],
```

Expand Down

0 comments on commit c91b03e

Please sign in to comment.