public function paymentDriver($invitation = false, $gatewayTypeId = false) { $class = static::paymentDriverClass($this->gateway->provider); return new $class($this, $invitation, $gatewayTypeId); }