Error during payment transaction
-
I have getting error after cancelled transaction.Please help me to solve this.payment.PNG
-
Hi @harsha-m
May i know the bagisto version in which you are getting this issue? -
@Vaishali-Agarwal 1.3.1
-
-
@devansh-webkul Hi,already run this command.But the error still remaining.
Here is the route.Route::group(['middleware' => ['web']], function () {
Route::prefix('payu/standard')->group(function () {
Route::get('/redirect', 'Webkul\PayU\Http\Controllers\StandardController@redirect')->name('payu.standard.redirect');Route::get('/success', 'Webkul\PayU\Http\Controllers\StandardController@success')->name('payu.standard.success'); Route::get('/cancel', 'Webkul\PayU\Http\Controllers\StandardController@cancel')->name('payu.standard.cancel'); });
});
Route::get('payu/standard/ipn', 'Webkul\PayU\Http\Controllers\StandardController@ipn')->name('payu.standard.ipn');
-
I can't find anything wrong with your code,
As I checked your screenshot, it checks for the current page route and then fetches the route name.
But the problem is route is getting
null
i.e. means your current page route is not registered that's why chaining break andgetName()
is calling onnull
. -
@devansh-webkul Here is the current page route. Is anything wrong with this?
Route::get('/success', 'Webkul\PayU\Http\Controllers\StandardController@success')->name('payu.standard.success');
Route::get('/cancel', 'Webkul\PayU\Http\Controllers\StandardController@cancel')->name('payu.standard.cancel');
});
-
Please share the full backlog/backtrace as from here I am not able to figure it out.
Also, try to clean the views and cache because I couldn't found any issue in the code.
-
@devansh-webkul Can I share my files here??
-
I just want to see the error log and back trace.
-
Hi @harsha-m
I would suggest you raise the ticket here [email protected] and help @devansh-webkul by providing the necessary information on the same, so that he can guide you in better way.Thanks
-
here is laravel log
[2021-07-06 21:49:21] local.ERROR: Call to a member function getName() on null (View: /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php) (View: /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php) (View: /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php) {"exception":"[object] (ErrorException(code: 0): Call to a member function getName() on null (View: /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php) (View: /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php) (View: /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php) at /home/thathwahost/public_html/finedeal.co.in/shop/storage/framework/views/0a04f7accc596e3bd87478012a0c8f9d30b1febb.php:1)
[stacktrace]
#0 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(43): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 0)
#1 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(57): Illuminate\View\Engines\PhpEngine->evaluatePath('/home/thathwaho...', Array)
#2 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/View/View.php(139): Illuminate\View\Engines\CompilerEngine->get('/home/thathwaho...', Array)
#3 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/View/View.php(122): Illuminate\View\View->getContents()
#4 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/View/View.php(91): Illuminate\View\View->renderContents()
#5 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Http/Response.php(62): Illuminate\View\View->render()
#6 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Http/Response.php(34): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(55): Illuminate\Http\Response->__construct(Object(Illuminate\View\View), 500, Array)
#8 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(85): Illuminate\Routing\ResponseFactory->make(Object(Illuminate\View\View), 500, Array)
#9 /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Core/src/Exceptions/Handler.php(76): Illuminate\Routing\ResponseFactory->view('shop::errors.50...', Array, 500)
#10 /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Core/src/Exceptions/Handler.php(35): Webkul\Core\Exceptions\Handler->response('shop', 500)
#11 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(51): Webkul\Core\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException))
#12 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Routing\Pipeline->handleException(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException))
#13 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(60): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#14 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#15 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#16 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Object(Illuminate\Http\Request), Object(Illuminate\Session\Store), Object(Closure))
#17 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#18 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#19 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#20 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#22 /home/thathwahost/public_html/finedeal.co.in/shop/packages/Webkul/Core/src/Http/Middleware/CheckForMaintenanceMode.php(117): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#23 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Webkul\Core\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#24 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(140): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#26 /home/thathwahost/public_html/finedeal.co.in/shop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(109): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#27 /home/thathwahost/public_html/finedeal.co.in/shop/public/index.php(74): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#28 {main} -
@devansh-webkul what do you mean by back trace??
-
Hi @thirdeyetechs and @harsha-m,
I couldn't found any issue in the log. Just raise the ticket here,
[email protected]With all your instance details and credential. So that i can check there.
-
@devansh-webkul Do you want cpanel credentials??