app\models\AccountGateway::paymentDriver PHP Method

paymentDriver() public method

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