Skip to content

Commit

Permalink
request with showCertificateID just like autoApplySSL does; editor fo…
Browse files Browse the repository at this point in the history
…rmatted whitespace
  • Loading branch information
JAAulde committed Aug 7, 2020
1 parent f70bde1 commit 47bffdb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function autoRefund(array $params)
public function autoApplySSL(array $params)
{
// Two choices, we want url-encoded
$params['responseFormat'] = CommunicationAdapter::RESPONSE_URL_ENCODED;
$params['responseFormat'] = CommunicationAdapter::RESPONSE_URL_ENCODED;
$params['showCertificateID'] = 'Y';

// Send request
Expand All @@ -224,7 +224,7 @@ public function autoApplySSL(array $params)
->setOrderNumber($arr['orderNumber'])
->setTotalCost($arr['totalCost'])
->setRequestQuery($arr['requestQuery']);

if (isset($arr['uniqueValue'])) {
$result->setUniqueValue($arr['uniqueValue']);
}
Expand Down Expand Up @@ -289,6 +289,7 @@ public function autoReplaceSSL(array $params)
{
// Two choices, we want url-encoded
$params['responseFormat'] = CommunicationAdapter::RESPONSE_URL_ENCODED;
$params['showCertificateID'] = 'Y';

// Send request
$arr = $this
Expand Down Expand Up @@ -408,10 +409,10 @@ public function collectSsl(array $params)
$result = new CollectSslResult();

$this->fill($result, $arr, array('notBefore', 'notAfter'));

/*
* Comodo does not provide these data, when not a EV certificate (Bug?). So we fill this manually to "not required".
*
*
* https://secure.comodo.net/api/pdf/webhostreseller/sslcertificates/CollectSSL%20v1.17.pdf
*/
if (!isset($arr['evClickThroughStatus'])) {
Expand Down Expand Up @@ -507,7 +508,7 @@ public function getDCVEMailAddressList(array $params)

if ($responseArray['errorCode'] == 0) {
$result = new GetDCVEMailAddressListResult();

if (isset($responseArray['whois_email'][0]) && $responseArray['whois_email'][0] == 'none') {
unset($responseArray['whois_email'][0]);
}
Expand Down Expand Up @@ -659,8 +660,8 @@ public function sslChecker(array $params)
* @throws Model\Exception\UnknownApiException
* @throws Model\Exception\UnknownException
*/
public function webHostReport(array $params) {

public function webHostReport(array $params)
{
if (empty($params['lastResultNo'])) {
$params['lastResultNo'] = 10;
}
Expand Down

0 comments on commit 47bffdb

Please sign in to comment.