protected function _configureDefaults() { $client = Payin7Payments\Payin7PaymentsClient::getInstance(array('integration_id' => $this->_pphelper->getApiIntegrationIdentifier(), 'integration_key' => $this->_pphelper->getApiIntegrationKey(), 'timeout' => self::API_CLIENT_TIMEOUT, 'connect_timeout' => self::API_CLIENT_CONNECT_TIMEOUT)); // disable SSL checks under sandbox if ($this->_pphelper->getApiSandboxEnabled()) { $client->setSslVerification(false, false); } $client->setBaseUrl($this->_pphelper->getJsonApiUrl()); $this->_api_client = $client; }
public function getScriptSrc() { return $this->_helper->getJsApiUrl('/' . Payin7_Payments_Helper_Data::DEFAULT_JSAPI_FNAME); }