Skip to content

Commit 81db663

Browse files
author
Sukanya
committed
removed masking poc
1 parent cbde874 commit 81db663

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/cybersource-php-template/ApiClient.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)