Implementiere read-only Shopify API Client

This commit is contained in:
2026-08-12 16:47:24 +02:00
parent 0efad5a7b0
commit f10b32ae28
2 changed files with 129 additions and 1 deletions
@@ -79,7 +79,7 @@ function shopify_webhook_finish_run(PDO $pdo, int $runId, string $status, array
function handle_shopify_webhook(PDO $pdo, array $env, string $rawPayload, array $server): array
{
$headers = shopify_webhook_headers($server);
$secret = env_value('SHOPIFY_API_SECRET', $env);
$secret = env_value('SHOPIFY_CLIENT_SECRET', $env);
if (($server['REQUEST_METHOD'] ?? '') !== 'POST') {
return ['http_status' => 405, 'payload' => ['status' => 'rejected', 'error' => 'method_not_allowed']];