• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Error during payment transaction

General Discussion
4
15
778
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    harsha m last edited by 6 Jul 2021, 11:48

    I have getting error after cancelled transaction.Please help me to solve this.payment.PNG

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by 6 Jul 2021, 16:44

      Hi @harsha-m
      May i know the bagisto version in which you are getting this issue?

      H 1 Reply Last reply 7 Jul 2021, 03:36 Reply Quote 0
      • H
        harsha m @Vaishali Agarwal last edited by 7 Jul 2021, 03:36

        @Vaishali-Agarwal 1.3.1

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 7 Jul 2021, 04:40

          Hi @harsha-m,

          It looks like routes are not registered properly.

          Just try with,
          php artisan optimize

          H 1 Reply Last reply 7 Jul 2021, 05:30 Reply Quote 0
          • H
            harsha m @devansh-webkul last edited by 7 Jul 2021, 05:30

            @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');

            1 Reply Last reply Reply Quote 0
            • devansh-webkul
              devansh-webkul last edited by 7 Jul 2021, 05:42

              @harsha-m,

              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 and getName() is calling on null.

              H 1 Reply Last reply 7 Jul 2021, 06:32 Reply Quote 0
              • H
                harsha m @devansh-webkul last edited by 7 Jul 2021, 06:32

                @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');
                

                });

                1 Reply Last reply Reply Quote 0
                • devansh-webkul
                  devansh-webkul last edited by 7 Jul 2021, 07:41

                  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.

                  H 1 Reply Last reply 7 Jul 2021, 10:12 Reply Quote 0
                  • H
                    harsha m @devansh-webkul last edited by 7 Jul 2021, 10:12

                    @devansh-webkul Can I share my files here??

                    1 Reply Last reply Reply Quote 0
                    • devansh-webkul
                      devansh-webkul last edited by 8 Jul 2021, 07:56

                      I just want to see the error log and back trace.

                      H 1 Reply Last reply 8 Jul 2021, 10:27 Reply Quote 0
                      • V
                        Vaishali Agarwal last edited by 8 Jul 2021, 08:14

                        Hi @harsha-m
                        I would suggest you raise the ticket here support@bagisto.com and help @devansh-webkul by providing the necessary information on the same, so that he can guide you in better way.

                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • T
                          thirdeyetechs last edited by 8 Jul 2021, 09:34

                          @devansh-webkul

                          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}

                          1 Reply Last reply Reply Quote 0
                          • H
                            harsha m @devansh-webkul last edited by 8 Jul 2021, 10:27

                            @devansh-webkul what do you mean by back trace??

                            1 Reply Last reply Reply Quote 0
                            • devansh-webkul
                              devansh-webkul last edited by 8 Jul 2021, 11:56

                              Hi @thirdeyetechs and @harsha-m,

                              I couldn't found any issue in the log. Just raise the ticket here,
                              support@bagisto.com

                              With all your instance details and credential. So that i can check there.

                              H 1 Reply Last reply 12 Jul 2021, 09:26 Reply Quote 0
                              • H
                                harsha m @devansh-webkul last edited by 12 Jul 2021, 09:26

                                @devansh-webkul Do you want cpanel credentials??

                                1 Reply Last reply Reply Quote 0
                                3 out of 15
                                • First post
                                  3/15
                                  Last post