diff --git a/src/ZarinpalServiceProvider.php b/src/ZarinpalServiceProvider.php index 21ee768..30e6452 100644 --- a/src/ZarinpalServiceProvider.php +++ b/src/ZarinpalServiceProvider.php @@ -34,7 +34,7 @@ public function register() : void { // بارگذاری پیکربندی $this->mergeConfigFrom( - __DIR__.'/../config/abdal-zarinpal-pg.php', 'abdal-zarinpal-pg' + __DIR__.'/config/abdal-zarinpal-pg.php', 'abdal-zarinpal-pg' ); // ثبت سرویس singleton @@ -67,7 +67,7 @@ public function boot(): void protected function configurePublishing(){ if ($this->app->runningInConsole()) { $this->publishes([ - __DIR__.'/../stubs/abdal-zarinpal-pg.php' => config_path('abdal-zarinpal-pg.php'), + __DIR__.'/stubs/abdal-zarinpal-pg.php' => config_path('abdal-zarinpal-pg.php'), ], 'abdal-zarinpal-pg-config'); } diff --git a/src/config/abdal-zarinpal-pg.php b/src/config/abdal-zarinpal-pg.php new file mode 100644 index 0000000..79c51e4 --- /dev/null +++ b/src/config/abdal-zarinpal-pg.php @@ -0,0 +1,27 @@ + env('ZARINPAL_MERCHANT_ID', '00000000-0000-0000-0000-000000000000'), + + /* + |-------------------------------------------------------------------------- + | Currency + |-------------------------------------------------------------------------- + | + | This value defines the default currency for your transactions. + | You can override this value in your code if needed. + | + */ + 'currency' => env('ZARINPAL_CURRENCY', 'IRT'), + +];