Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public function getScriptSrc()
 {
     return $this->_helper->getJsApiUrl('/' . Payin7_Payments_Helper_Data::DEFAULT_JSAPI_FNAME);
 }