public function onAuthorized(ServiceResponse $response)
    {
        if ($response->getPayment()->Gateway === 'Manual') {
            if (($reservation = Reservation::get()->byID($this->owner->ReservationID)) && $reservation->exists()) {
                $reservation->complete();
            }
        }
    }
public function onAuthorized(ServiceResponse $response)
    {
        if ($response->getPayment()->Gateway === 'Manual') {
            if (($reservation = Reservation::get()->byID($this->owner->ReservationID)) && $reservation->exists()) {
                $reservation->complete();
            }
        }
    }
public function onAuthorized ( ServiceResponse $ response ) { if ( $ response -> getPayment ( ) -> Gateway === 'Manual' ) { if ( ( $ reservation = Reservation :: get ( ) -> byID ( $ this -> owner -> ReservationID ) ) && $ reservation -> exists ( ) ) { $ reservation -> complete ( ) ; } } }
Fix issue manual gateway doesn't call onCaptured hook

@param ServiceResponse $response
Fix issue manual gateway doesn t call onCaptured hook