src/SecucardConnect/Product/Payment/Service/PaymentService.php
public function onStatusChange($fn)
    {
        $this->registerEventHandler(static::class, $fn === null ? null : new PaymentChanged($fn, $this));
    }
public function onStatusChange($fn)
    {
        $this->registerEventHandler(static::class, $fn === null ? null : new PaymentChanged($fn, $this));
    }
public function onStatusChange ( $ fn ) { $ this -> registerEventHandler ( static :: class , $ fn === null ? null : new PaymentChanged ( $ fn , $ this ) ) ; }
Set a callback to be notified when a creditcard has changed. Pass null to remove a previous setting.
@param callable|null $fn Any function which accepts a "Transaction" model class argument.
Set a callback to be notified when a creditcard has changed . Pass null to remove a previous setting .