-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Driver source not found. Please update the package #31
Comments
hi, what kind of error happened in your project? copy and paste your error here. |
i got it. in new major update we have changed the |
in your |
hi, I updated my Shetabit \ Payment \ Exceptions \ DriverNotFoundException protected function validateDriver()
{
if (empty($this->driver)) {
throw new DriverNotFoundException('Driver not selected or default driver does not exist.');
}
if (empty($this->config['drivers'][$this->driver]) || empty($this->config['map'][$this->driver])) {
throw new DriverNotFoundException('Driver not found in config file. Try updating the package.');
}
if (!class_exists($this->config['map'][$this->driver])) {
throw new DriverNotFoundException('Driver source not found. Please update the package.');
}
$reflect = new \ReflectionClass($this->config['map'][$this->driver]);
if (!$reflect->implementsInterface(DriverInterface::class)) {
throw new \Exception("Driver must be an instance of Contracts\DriverInterface.");
}
} |
please send 'map' => [
'asanpardakht' => \Shetabit\Payment\Drivers\Asanpardakht\Asanpardakht::class,
'behpardakht' => \Shetabit\Payment\Drivers\Behpardakht\Behpardakht::class,
'idpay' => \Shetabit\Payment\Drivers\Idpay\Idpay::class,
'irankish' => \Shetabit\Payment\Drivers\Irankish\Irankish::class,
'nextpay' => \Shetabit\Payment\Drivers\Nextpay\Nextpay::class,
'parsian' => \Shetabit\Payment\Drivers\Parsian\Parsian::class,
'payir' => \Shetabit\Payment\Drivers\Payir\Payir::class,
'payping' => \Shetabit\Payment\Drivers\Payping\Payping::class,
'paystar' => \Shetabit\Payment\Drivers\Paystar\Paystar::class,
'poolam' => \Shetabit\Payment\Drivers\Poolam\Poolam::class,
'sadad' => \Shetabit\Payment\Drivers\Sadad\Sadad::class,
'saman' => \Shetabit\Payment\Drivers\Saman\Saman::class,
'yekpay' => \Shetabit\Payment\Drivers\Yekpay\Yekpay::class,
'zarinpal' => \Shetabit\Payment\Drivers\Zarinpal\Zarinpal::class,
] is it the same ? |
map section of 'map' => [
'zarinpal' => \Shetabit\Payment\Drivers\Zarinpal::class,
'irankish' => \Shetabit\Payment\Drivers\Irankish::class,
'saman' => \Shetabit\Payment\Drivers\Saman::class,
] package version: |
ok. remove the publish it by running : or update package to
|
For persian users: اگه پکیج رو قبلا استفاده میکردین و الان اپدیت کردین فایل config/payment.php رو پاک کنید و بعدش وندور پابلیش بزنید درست میشه. به دلیل این هست که فایل کانفیگ توی ورژن جدید ساختارش تغییر کرده و هنوز پابلیش نکردین. |
Hi,
I use this package to handle my payments using zaripal gateway. I got this error recently while I didn't make any changes in my codebase. please help me why this exception was happened?
Thanks.
The text was updated successfully, but these errors were encountered: