mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-02 20:27:45 +08:00
i
This commit is contained in:
parent
bc003ebb60
commit
d21ffe9fbd
@ -86,11 +86,11 @@ class Pay
|
||||
throw new InvalidArgumentException("Driver is not defined.");
|
||||
}
|
||||
|
||||
if (! file_exists(__DIR__ . '/Gateways/' . ucfirst($this->driver) . '/' . ucfirst($gateway) . 'Gateway.php')) {
|
||||
if (! file_exists(__DIR__ . '/Gateways/' . ucfirst($this->drivers) . '/' . ucfirst($gateway) . 'Gateway.php')) {
|
||||
throw new InvalidArgumentException("Gateway [$gateway] is not supported.");
|
||||
}
|
||||
|
||||
$gateway = __NAMESPACE__ . '\\Gateways\\' . ucfirst($this->driver) . '\\' . ucfirst($gateway) . 'Gateway';
|
||||
$gateway = __NAMESPACE__ . '\\Gateways\\' . ucfirst($this->drivers) . '\\' . ucfirst($gateway) . 'Gateway';
|
||||
|
||||
return $this->build($gateway);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user