/** * @return string * @throws \Exception */ private function getPagSeguroPaymentJs() { if (\PagSeguro\Configuration\Configure::getEnvironment()->getEnvironment() == 'sandbox') { return \UOL\PagSeguro\Helper\Library::SANDBOX_JS; } else { return \UOL\PagSeguro\Helper\Library::STANDARD_JS; } }