protected function getEndpoint() { return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint; }