* Enable Pro plan - WIP * no pricing page if have no paid plans * Set pricing ids in env * views & submissions FREE for all * extra param for env * form password FREE for all * Custom Code is PRO feature * Replace codeinput prism with codemirror * Better form Cleaning message * Added risky user email spam protection * fix form cleaning * Custom SEO * fix custom seo formcleaner * Better webhooks * fix test case
28 lines
533 B
PHP
28 lines
533 B
PHP
<?php
|
|
|
|
namespace App\Service\Forms\Webhooks;
|
|
|
|
use App\Models\Forms\Form;
|
|
|
|
class ZapierHandler extends AbstractWebhookHandler
|
|
{
|
|
public function __construct(protected Form $form, protected array $data, protected string $webhookUrl)
|
|
{
|
|
}
|
|
|
|
protected function getProviderName(): ?string
|
|
{
|
|
return 'zapier';
|
|
}
|
|
|
|
protected function getWebhookUrl(): string
|
|
{
|
|
return $this->webhookUrl;
|
|
}
|
|
|
|
protected function shouldRun(): bool
|
|
{
|
|
return !is_null($this->getWebhookUrl());
|
|
}
|
|
}
|