diff --git a/modules/PaypalStandard/Assets/.gitkeep b/modules/PaypalStandard/Assets/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Config/.gitkeep b/modules/PaypalStandard/Config/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Config/config.php b/modules/PaypalStandard/Config/config.php deleted file mode 100644 index cdec48cf0..000000000 --- a/modules/PaypalStandard/Config/config.php +++ /dev/null @@ -1,7 +0,0 @@ - 'PaypalStandard', - -]; diff --git a/modules/PaypalStandard/Console/.gitkeep b/modules/PaypalStandard/Console/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Database/Migrations/.gitkeep b/modules/PaypalStandard/Database/Migrations/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Database/Seeders/.gitkeep b/modules/PaypalStandard/Database/Seeders/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Database/Seeders/PaypalStandardDatabaseSeeder.php b/modules/PaypalStandard/Database/Seeders/PaypalStandardDatabaseSeeder.php deleted file mode 100644 index 258e3d6ec..000000000 --- a/modules/PaypalStandard/Database/Seeders/PaypalStandardDatabaseSeeder.php +++ /dev/null @@ -1,21 +0,0 @@ -call("OthersTableSeeder"); - } -} diff --git a/modules/PaypalStandard/Entities/.gitkeep b/modules/PaypalStandard/Entities/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Events/.gitkeep b/modules/PaypalStandard/Events/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Events/Handlers/.gitkeep b/modules/PaypalStandard/Events/Handlers/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Http/Controllers/.gitkeep b/modules/PaypalStandard/Http/Controllers/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Http/Middleware/.gitkeep b/modules/PaypalStandard/Http/Middleware/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Http/Requests/.gitkeep b/modules/PaypalStandard/Http/Requests/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Jobs/.gitkeep b/modules/PaypalStandard/Jobs/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Events/Handlers/PaypalStandardGateway.php b/modules/PaypalStandard/Listeners/PaypalStandardGateway.php similarity index 100% rename from modules/PaypalStandard/Events/Handlers/PaypalStandardGateway.php rename to modules/PaypalStandard/Listeners/PaypalStandardGateway.php diff --git a/modules/PaypalStandard/Mail/.gitkeep b/modules/PaypalStandard/Mail/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Providers/.gitkeep b/modules/PaypalStandard/Providers/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Providers/PaypalStandardServiceProvider.php b/modules/PaypalStandard/Providers/PaypalStandardServiceProvider.php index 6d414e2ac..6d02cff49 100644 --- a/modules/PaypalStandard/Providers/PaypalStandardServiceProvider.php +++ b/modules/PaypalStandard/Providers/PaypalStandardServiceProvider.php @@ -3,10 +3,9 @@ namespace Modules\PaypalStandard\Providers; use Illuminate\Support\ServiceProvider; -use Illuminate\Database\Eloquent\Factory; use App\Events\PaymentGatewayListing; -use Modules\PaypalStandard\Events\Handlers\PaypalStandardGateway; +use Modules\PaypalStandard\Listeners\PaypalStandardGateway; class PaypalStandardServiceProvider extends ServiceProvider { @@ -25,13 +24,10 @@ class PaypalStandardServiceProvider extends ServiceProvider public function boot() { $this->registerTranslations(); - $this->registerConfig(); $this->registerViews(); - $this->registerFactories(); + $this->registerMigrations(); - $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); - - $this->app['events']->listen(PaymentGatewayListing::class, PaypalStandardGateway::class); + $this->registerEvents(); } /** @@ -44,22 +40,6 @@ class PaypalStandardServiceProvider extends ServiceProvider // } - /** - * Register config. - * - * @return void - */ - protected function registerConfig() - { - $this->publishes([ - __DIR__.'/../Config/config.php' => config_path('paypalstandard.php'), - ], 'config'); - - $this->mergeConfigFrom( - __DIR__.'/../Config/config.php', 'paypalstandard' - ); - } - /** * Register views. * @@ -96,15 +76,14 @@ class PaypalStandardServiceProvider extends ServiceProvider } } - /** - * Register an additional directory of factories. - * @source https://github.com/sebastiaanluca/laravel-resource-flow/blob/develop/src/Modules/ModuleServiceProvider.php#L66 - */ - public function registerFactories() + public function registerMigrations() { - if (! app()->environment('production')) { - app(Factory::class)->load(__DIR__ . '/Database/factories'); - } + $this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations'); + } + + public function registerEvents() + { + $this->app['events']->listen(PaymentGatewayListing::class, PaypalStandardGateway::class); } /** diff --git a/modules/PaypalStandard/Repositories/.gitkeep b/modules/PaypalStandard/Repositories/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Resources/lang/.gitkeep b/modules/PaypalStandard/Resources/lang/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Resources/lang/en-GB/general.php b/modules/PaypalStandard/Resources/lang/en-GB/general.php new file mode 100644 index 000000000..d8591f08f --- /dev/null +++ b/modules/PaypalStandard/Resources/lang/en-GB/general.php @@ -0,0 +1,21 @@ + 'Paypal Standard', + 'paypalstandard' => 'Paypal Standard', + + 'form' => [ + 'email' => 'Email', + 'mode' => 'Mode', + 'debug' => 'Debug', + 'transaction' => 'Transaction', + 'customer' => 'Show to Customer', + 'order' => 'Order', + ], + + 'test_mode' => 'Warning: The payment gateway is in \'Sandbox Mode\'. Your account will not be charged.', + 'description' => 'Pay with PAYPAL', + 'confirm' => 'Confirm', + +]; diff --git a/modules/PaypalStandard/Resources/lang/en-GB/paypalstandard.php b/modules/PaypalStandard/Resources/lang/en-GB/paypalstandard.php deleted file mode 100644 index 5fdb3af27..000000000 --- a/modules/PaypalStandard/Resources/lang/en-GB/paypalstandard.php +++ /dev/null @@ -1,17 +0,0 @@ - 'Paypal Standard', - 'email' => 'Email', - 'mode' => 'Mode', - 'debug' => 'Debug', - 'transaction' => 'Transaction', - 'customer' => 'Show to Customer', - 'order' => 'Order', - - 'test_mode' => 'Warning: The payment gateway is in \'Sandbox Mode\'. Your account will not be charged.', - 'description' => 'Pay with PAYPAL', - 'confirm' => 'Confirm', - -]; diff --git a/modules/PaypalStandard/Resources/views/.gitkeep b/modules/PaypalStandard/Resources/views/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/modules/PaypalStandard/Resources/views/show.blade.php b/modules/PaypalStandard/Resources/views/show.blade.php index b465cdcf7..70c61e14c 100644 --- a/modules/PaypalStandard/Resources/views/show.blade.php +++ b/modules/PaypalStandard/Resources/views/show.blade.php @@ -1,11 +1,11 @@