/
home
/
techb158
/
immovalet.com
/
platform
/
plugins
/
paystack
/
src
/
Providers
/
/home/techb158/immovalet.com/platform/plugins/paystack/src/Providers
mkdir
upload
Name
Size
Mode
Actions
HookServiceProvider.php
4437
0644
edit
dl
rm
PaystackServiceProvider.php
1278
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/platform/plugins/paystack/src/Providers/PaystackServiceProvider.php
(1278B)
<?php namespace Botble\Paystack\Providers; use Botble\Base\Supports\Helper; use Botble\Base\Traits\LoadAndPublishDataTrait; use Illuminate\Contracts\Filesystem\FileNotFoundException; use Illuminate\Support\ServiceProvider; class PaystackServiceProvider extends ServiceProvider { use LoadAndPublishDataTrait; public function register() { Helper::autoload(__DIR__ . '/../../helpers'); } /** * @throws FileNotFoundException */ public function boot() { if (is_plugin_active('payment')) { $this->setNamespace('plugins/paystack') ->loadRoutes(['web']) ->loadAndPublishViews() ->publishAssets(); $this->app->register(HookServiceProvider::class); $config = $this->app->make('config'); $config->set([ 'paystack.publicKey' => get_payment_setting('public', PAYSTACK_PAYMENT_METHOD_NAME), 'paystack.secretKey' => get_payment_setting('secret', PAYSTACK_PAYMENT_METHOD_NAME), 'paystack.merchantEmail' => get_payment_setting('merchant_email', PAYSTACK_PAYMENT_METHOD_NAME), 'paystack.paymentUrl' => 'https://api.paystack.co', ]); } } }
Save
cmd:
run