Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Mar 19, 2024
1 parent bc7cec5 commit b73d7db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/bazar.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@
'gateway' => [
'default' => env('BAZAR_GATEWAY_DRIVER', 'transfer'),
'drivers' => [
'cash' => [],
'transfer' => [],
'cash' => [
'enabled' => true,
],
'transfer' => [
'enabled' => true,
],
],
'urls' => [
'success' => '/?order={order}',
Expand Down
1 change: 1 addition & 0 deletions src/Support/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ abstract class Driver
public function __construct(array $config = [])
{
$this->config = $config;
$this->enabled = (bool) ($config['enabled'] ?? false);
}

/**
Expand Down

0 comments on commit b73d7db

Please sign in to comment.