Skip to content

Commit

Permalink
🐛 wip
Browse files Browse the repository at this point in the history
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
  • Loading branch information
lloricode committed Feb 8, 2021
1 parent 0495541 commit 057ddd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/LaravelPaymayaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ public function packageBooted()
$this->app->singleton(
PaymayaClient::class,
function () {
// weird in production server
$config = config('paymaya-sdk');
$s = $config['keys']['secret'];
$p = $config['keys']['public'];
$m = $config['mode'];
$s = $config['keys']['secret'] ?? 'xxx';
$p = $config['keys']['public'] ?? 'xxx';
$m = $config['mode'] ?? PaymayaClient::ENVIRONMENT_SANDBOX;

return new PaymayaClient($s, $p, $m);
}
Expand Down

0 comments on commit 057ddd4

Please sign in to comment.