Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Aug 25, 2021
2 parents 24335dc + 6bf8326 commit 6f452db
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Requests/BaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

namespace Helldar\CashierDriver\Sber\QrCode\Requests;

use Helldar\Cashier\Facades\Config\Main;
use Helldar\Cashier\Facades\Helpers\Date;
use Helldar\Cashier\Http\Request;
use Helldar\CashierDriver\Sber\Auth\Auth;
Expand All @@ -40,6 +41,20 @@ public function getRawHeaders(): array
];
}

public function getHttpOptions(): array
{
if (Main::isProduction()) {
return [
'cert' => [
$this->model->getCertificatePath(),
$this->model->getCertificatePassword(),
],
];
}

return [];
}

protected function uniqueId(): string
{
return $this->model->getUniqueId();
Expand Down

0 comments on commit 6f452db

Please sign in to comment.