Skip to content

Commit

Permalink
Update Config
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrasha committed Jan 2, 2025
1 parent 04cfff4 commit 580828c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZarinpalServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');

}
Expand Down
27 changes: 27 additions & 0 deletions src/config/abdal-zarinpal-pg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Zarinpal Merchant ID
|--------------------------------------------------------------------------
|
| This value is the merchant ID provided by Zarinpal for your account.
| It is used to authenticate your requests to the Zarinpal API.
|
*/
'merchant_id' => 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'),

];

0 comments on commit 580828c

Please sign in to comment.