Skip to content

Commit

Permalink
sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
bigrocs committed Sep 16, 2017
1 parent 88d9106 commit bd593ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
Ignited\LaravelOmnipay\LaravelOmnipayServiceProvider::class,
CoreCMF\Omnipay\Providers\EventServiceProvider::class,//事件服务
],
'debug' => true,
'sandbox' => true,
];
2 changes: 1 addition & 1 deletion src/Http/Controllers/OmnipayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class OmnipayController extends Controller

public function __construct(){
$this->gateway = resolve('omnipay');
if (config('omnipay.debug')) {
if (config('omnipay.sandbox')) {
$this->gateway->sandbox();
}
}
Expand Down

0 comments on commit bd593ee

Please sign in to comment.