PaymentTransactionChainProcessor example

new Criteria(),
                    Context::createDefaultContext()
                )
            );

        $eventDispatcher = $this->createMock(EventDispatcherInterface::class);
        $eventDispatcher
            ->expects(static::once())
            ->method('dispatch')
            ->with(static::isInstanceOf(PayPaymentOrderCriteriaEvent::class));

        $processor = new PaymentTransactionChainProcessor(
            $this->createMock(TokenFactoryInterfaceV2::class),
            $orderRepository,
            $this->createMock(RouterInterface::class),
            $this->createMock(PaymentHandlerRegistry::class),
            $this->createMock(SystemConfigService::class),
            $this->createMock(InitialStateIdLoader::class),
            new PaymentTransactionStructFactory(),
            $eventDispatcher,
        );

        if (!Feature::isActive('v6.6.0.0')) {
            
Home | Imprint | This part of the site doesn't use cookies.