public function onCaptured(ServiceResponse $response)
    {
        /** @var Reservation $reservation */
        if (($reservation = Reservation::get()->byID($this->owner->ReservationID)) && $reservation->exists()) {
            $reservation->complete();
        }
    }
public function onCaptured(ServiceResponse $response)
    {
        /** @var Reservation $reservation */
        if (($reservation = Reservation::get()->byID($this->owner->ReservationID)) && $reservation->exists()) {
            $reservation->complete();
        }
    }
public function onCaptured ( ServiceResponse $ response ) { /** @var Reservation $reservation */ if ( ( $ reservation = Reservation :: get ( ) -> byID ( $ this -> owner -> ReservationID ) ) && $ reservation -> exists ( ) ) { $ reservation -> complete ( ) ; } }
Complete the order on a successful transaction

@param ServiceResponse $response

@throws \ValidationException
Complete the order on a successful transaction