BitBagCommerce / SyliusImojePlugin

0 stars 2 forks source link

Gateway "bitbag_imoje" does not exist #72

Closed orzeszki closed 1 year ago

orzeszki commented 1 year ago

Plugin version: 2.0.0 and 1.0.2 Sylius version: 1.11.14

I've added new payment by Sylius Admin Panel: Type: BitBag_imoje Code: tried imoje, ing, bitbag_imoje All required fields are filled Done every steps from here: https://github.com/BitBagCommerce/SyliusIngPlugin/blob/HEAD/doc/installation.md

But during redirection from checkout process where I chose available ing payment I get this error:

Payum\Core\Exception\InvalidArgumentException:
Gateway "bitbag_imoje" does not exist.

  at vendor/payum/payum/src/Payum/Core/Registry/AbstractRegistry.php:98
  at Payum\Core\Registry\AbstractRegistry->getGateway('bitbag_imoje')
     (vendor/payum/payum/src/Payum/Core/Registry/SimpleRegistry.php:37)
  at Payum\Core\Registry\SimpleRegistry->getGateway('bitbag_imoje')
     (vendor/payum/payum/src/Payum/Core/Registry/FallbackRegistry.php:56)
  at Payum\Core\Registry\FallbackRegistry->getGateway('bitbag_imoje')
     (vendor/payum/payum/src/Payum/Core/Registry/FallbackRegistry.php:56)
  at Payum\Core\Registry\FallbackRegistry->getGateway('bitbag_imoje')
     (vendor/payum/payum/src/Payum/Core/Payum.php:70)
  at Payum\Core\Payum->getGateway('bitbag_imoje')
     (vendor/payum/payum-bundle/Controller/CaptureController.php:42)
  at Payum\Bundle\PayumBundle\Controller\CaptureController->doAction(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:25)

I've tried changing code to "ing" or "imoje" but it didn't work. How to register this gateway? I suppose this should be automatically.

Command php bin/console debug:config payum gives this result:

payum:
    storages:
        App\Entity\Order\Order:
            doctrine:
                driver: orm
            extension:
                all: true
                gateways: {  }
                factories: {  }
        App\Entity\Payment\Payment:
            doctrine:
                driver: orm
            extension:
                all: true
                gateways: {  }
                factories: {  }
    security:
        token_storage:
            Sylius\Bundle\PayumBundle\Model\PaymentSecurityToken:
                doctrine:
                    driver: orm
    dynamic_gateways:
        config_storage:
            Sylius\Bundle\PayumBundle\Model\GatewayConfig:
                doctrine:
                    driver: orm
        sonata_admin: false
    gateways:
        offline:
            factory: offline

sylius_gateway_config table: image sylius_payment_method table: image

Of course, I tried other payment method names and their code such as "ing", "testing", "imoje". Only in the example above the names are the same as the factory name.

Your plugin Przelewy24 works fine. I don't have any idea what's going on.

MacBalc commented 1 year ago

Hello, I was unable to recreate this issue, could you provide reproduce for me to check again?

orzeszki commented 1 year ago

Hello, thank you for your interest. Unfortunately I can't provide anything more as this is a project in my company. I have installed another plugin for ING available in composer and it works perfectly.

I would like to help you, but I don't have anything else that can help. The only information is that I updated Sylius from version 1.10 to 1.11 especially for this plugin, maybe here is a hint to reproduce the error.

MacBalc commented 1 year ago

In conclusion, you have switched from bitbag/sylius-ing-plugin to bitbag/sylius-imoje-plugin ?

orzeszki commented 1 year ago

In conclusion, you have switched from bitbag/sylius-ing-plugin to bitbag/sylius-imoje-plugin ?

No, I just switched to another plugin not from BitBag. Before it I used version 2.0.0 and 1.0.2 which is called bitbag/sylius-imoje-plugin

MacBalc commented 1 year ago

Thank's for the feedback

MacBalc commented 1 year ago

Sadly have to close due to inability to reproduce issue. I will stay on watch for another occurrence