From 782898871a3195449d83587b74e3e1bcddb7bb23 Mon Sep 17 00:00:00 2001 From: Ferry Ariawan Date: Sat, 1 Oct 2016 16:28:22 +0700 Subject: [PATCH] bug fix route notify --- src/Controllers/DokuController.php | 2 +- src/routes.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controllers/DokuController.php b/src/Controllers/DokuController.php index c6076c6..ef2a3b3 100644 --- a/src/Controllers/DokuController.php +++ b/src/Controllers/DokuController.php @@ -109,7 +109,7 @@ function __construct() { ]; }else{ - die('the trans_id value is not found'); + // die('the trans_id value is not found'); } } diff --git a/src/routes.php b/src/routes.php index 444f2e7..4edca8b 100644 --- a/src/routes.php +++ b/src/routes.php @@ -4,6 +4,7 @@ Route::group(['middleware'=>['\Illuminate\Session\Middleware\StartSession'],'prefix'=>config('dokularavel.PAYMENT_PATH'),'namespace'=>$namespace], function () { Route::get('/', ['uses'=>'DokuController@index','as'=>'DokuController.index']); Route::post('check-status', ['uses'=>'DokuController@checkStatus','as'=>'DokuController.checkStatus']); + Route::post('notify/{code}', ['uses'=>'DokuController@notify','as'=>'DokuController.notify']); Route::get('finish', ['uses'=>'DokuController@finish','as'=>'DokuController.finish']); Route::post('pay', ['uses'=>'DokuController@pay','as'=>'DokuController.pay']); Route::get('debug', ['uses'=>'DokuController@debug','as'=>'DokuController.debug']);