$renew = new \Xolphin\Requests\RenewRequest($currentCertificate->product, <years>, '<csr_string>', DCVTypes::FILE_VALIDATION);
$renew->setApproverEmail('email@domain.com');
The first parameter of RenewRequest requires an integer, while $currentCertificate->product returns a Product object.
It should be:
$renew = new \Xolphin\Requests\RenewRequest($currentCertificate->product->id, <years>, '<csr_string>',
Then we're left with:
PHP Deprecated: Method Xolphin\Requests\RenewRequest::setApproverEmail is deprecated use setApproverRepresentativeEmail or addDcv in vendor/xolphin/xolphin-api-php/src/Requests/RenewRequest.php on line 321
The README.md could use some love. It seems outdated?
https://github.com/xolphin/xolphin-api-php/blob/master/readme.md#renew-certificate
These lines don't work:
The first parameter of RenewRequest requires an integer, while $currentCertificate->product returns a Product object. It should be:
$renew = new \Xolphin\Requests\RenewRequest($currentCertificate->product->id, <years>, '<csr_string>',
Then we're left with:
PHP Deprecated: Method Xolphin\Requests\RenewRequest::setApproverEmail is deprecated use setApproverRepresentativeEmail or addDcv in vendor/xolphin/xolphin-api-php/src/Requests/RenewRequest.php on line 321