Commands and Events
What happens after a refund (default)
<?php
// src/Refund/NotifyAccountingAfterRefund.php
namespace App\Refund;
use Sylius\RefundPlugin\Event\UnitsRefunded;
use Sylius\RefundPlugin\ProcessManager\UnitsRefundedProcessStepInterface;
final class NotifyAccountingAfterRefund implements UnitsRefundedProcessStepInterface
{
public function __invoke(UnitsRefunded $event): void
{
// push credit memo + refund data, emit metrics, etc.
}
}Where to hook your logic
Listen to the refund event
Last updated
Was this helpful?
