public function Connect::getAppId in Commerce Square Connect 8
Gets the application ID.
Parameters
string $mode: The mode.
Return value
string The application ID.
File
- src/
Connect.php, line 71
Class
- Connect
- Represents the Connect application for Square.
Namespace
Drupal\commerce_squareCode
public function getAppId($mode) {
if ($mode == 'production') {
return $this->settings
->get('production_app_id');
}
return $this->settings
->get('sandbox_app_id');
}