AppAsyncPaymentHandler example

$connection
            ->method('createQueryBuilder')
            ->willReturn($qb);

        $sync = new AppSyncPaymentHandler(
            $this->createMock(OrderTransactionStateHandler::class),
            $this->createMock(StateMachineRegistry::class),
            $this->createMock(PaymentPayloadService::class),
            $this->createMock(EntityRepository::class),
        );

        $async = new AppAsyncPaymentHandler(
            $this->createMock(OrderTransactionStateHandler::class),
            $this->createMock(StateMachineRegistry::class),
            $this->createMock(PaymentPayloadService::class),
            $this->createMock(EntityRepository::class),
        );

        $registry = new PaymentHandlerRegistry(
            new ServiceLocator([
                AppSyncPaymentHandler::class => fn () => $sync,
            ]),
            new ServiceLocator([
                
Home | Imprint | This part of the site doesn't use cookies.