commit b1987982d1ef3f74b4ca2413ea4d2048b3539c05
parent e5ca70c69d9db7221a149f25e3b9e8c73a49677e
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 19 Oct 2025 16:17:00 +0200
DCE
Diffstat:
3 files changed, 2 insertions(+), 49 deletions(-)
diff --git a/README.md b/README.md
@@ -111,5 +111,7 @@ AGPLv3-or-later, see COPYING for the full license terms.
## TODO
- actually *TEST* subscriptions (and everything else)
+- support in-line QR code with long-polling in payment request!
+- some i18n missing
- LATER: use order expiration from merchant backend (with new v1.1 implementation)
instead of hard-coding 1 day!
diff --git a/src/Service/Turnstile.php b/src/Service/Turnstile.php
@@ -1,44 +0,0 @@
-<?php
-
-namespace Drupal\turnstile\Service;
-
-use Drupal\Core\Config\ConfigFactoryInterface;
-use GuzzleHttp\ClientInterface;
-use GuzzleHttp\Exception\RequestException;
-use Psr\Log\LoggerInterface;
-
-/**
- * Service for handling paywall functionality.
- *
- * FIXME: is this class needed at all?
- */
-class Turnstile {
-
- /**
- * The configuration factory.
- *
- * @var \Drupal\Core\Config\ConfigFactoryInterface
- */
- protected $configFactory;
-
- /**
- * The HTTP client.
- *
- * @var \GuzzleHttp\ClientInterface
- */
- protected $httpClient;
-
- /**
- * Constructs a Turnstile object.
- *
- * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
- * The configuration factory.
- * @param \GuzzleHttp\ClientInterface $http_client
- * The HTTP client.
- */
- public function __construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client) {
- $this->configFactory = $config_factory;
- $this->httpClient = $http_client;
- }
-
-}
-\ No newline at end of file
diff --git a/turnstile.services.yml b/turnstile.services.yml
@@ -1,8 +1,4 @@
services:
- turnstile.turnstile:
- class: Drupal\turnstile\Service\Turnstile
- arguments: ['@config.factory', '@http_client']
-
turnstile.api_service:
class: Drupal\turnstile\TalerMerchantApiService
arguments: ['@http_client_factory', '@logger.channel.turnstile']