public function init()
{
\Pingpp\Pingpp::setApiKey($this->live ? $this->live_secret_key : $this->test_secret_key);
if (!empty($this->private_key_path)) {
if (file_exists($this->private_key_path)) {
throw new InvalidConfigException('The private key file not exists.');
}
\Pingpp\Pingpp::setPrivateKeyPath($this->private_key_path);
}
}