File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
generator/cybersource-php-template Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ class ApiClient
152152 } elseif ((is_object($postData) or is_array($postData)) and !in_array('Content-Type: multipart/form-data', $headers, true)) { // json model
153153 $postData = json_encode(\{{invokerPackage} }\ObjectSerializer::sanitizeForSerialization($postData));
154154 }
155+ $resourcePath= utf8_encode($resourcePath);
155156 $authHeader = $this->callAuthenticationHeader($method, $postData, $resourcePath);
156157 $headers = array_merge($headers, $authHeader);
157158 $url = GlobalParameter::HTTPS_PREFIX.$this->config->getHost() . $resourcePath;
@@ -175,6 +176,8 @@ class ApiClient
175176 if ($this->config->getSSLVerification() === false) {
176177 curl_setopt($curl , CURLOPT_SSL_VERIFYPEER, 0);
177178 curl_setopt($curl , CURLOPT_SSL_VERIFYHOST, 0);
179+ } else{
180+ curl_setopt($curl , CURLOPT_CAINFO, __DIR__. DIRECTORY_SEPARATOR . ' ssl/cacert.pem' );
178181 }
179182
180183 if ($this->config->getCurlProxyHost()) {
You can’t perform that action at this time.
0 commit comments