Implementiere read-only Shopify API Client
This commit is contained in:
@@ -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']];
|
||||
|
||||
Reference in New Issue
Block a user