public function Avatax::getApiUrl in Drupal Commerce Connector for AvaTax 7.5
Gets the API url.
Return value
string The API url.
1 call to Avatax::getApiUrl()
- Avatax::doRequest in lib/
Avatax.php - Performs a request.
File
- lib/
Avatax.php, line 92 - Defines a class for consuming the Avatax API.
Class
- Avatax
- Defines the Avatax class.
Code
public function getApiUrl() {
if ($this
->getApiMode() == 'dev') {
return 'https://sandbox-rest.avatax.com/api/v2/';
}
else {
return 'https://rest.avatax.com/api/v2/';
}
}