Skip to content

Commit

Permalink
fixed the error - Undefined constant CURL SSLVERSION TLSV1 2
Browse files Browse the repository at this point in the history
  • Loading branch information
yushine committed Feb 13, 2025
1 parent 186ef11 commit 2705599
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions innopacks/plugin/src/Services/MarketplaceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class MarketplaceService

public function __construct()
{
if (! defined('CURL_SSLVERSION_TLSv1_2')) {
define('CURL_SSLVERSION_TLSv1_2', 6);
}

$this->baseUrl = config('innoshop.api_url').'/api/seller';

$this->client = Http::baseUrl($this->baseUrl)
Expand Down

0 comments on commit 2705599

Please sign in to comment.