for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GoCardlessPayment\Jobs\WebhookHandlers;
use GoCardlessPayment\Actions\Imports\ImportMandateAction;
use GoCardlessPayment\Events\GoCardlessWebhookEventHandled;
/**
* General handler for all mandate related events.
*/
class MandateEventHandlerJob extends WebhookEventHandlerJob
{
public function handle(): void
$mandateId = $this->event->links->mandate;
$model = ImportMandateAction::make($mandateId)->execute();
GoCardlessWebhookEventHandled::dispatch($this->event, $model);
}