Skip to content

Commit

Permalink
Merge default configs with user config (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
bahramsadin authored Jun 25, 2023
1 parent d7115dd commit a580120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function via($driver)
$this->driver = $driver;
$this->validateDriver();
$this->invoice->via($driver);
$this->settings = $this->config['drivers'][$driver];
$this->settings = array_merge($this->loadDefaultConfig()['drivers'][$driver] ?? [], $this->config['drivers'][$driver]);

return $this;
}
Expand Down

0 comments on commit a580120

Please sign in to comment.