Skip to content

Commit

Permalink
fixed Mellat cumulative flag checking
Browse files Browse the repository at this point in the history
  • Loading branch information
samuraee committed Dec 31, 2023
1 parent 50d4b7a commit 5761aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/shaparak.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
'username' => env('MELLAT_USERNAME'),
'password' => env('MELLAT_PASSWORD'),
'terminal_id' => env('MELLAT_TERMINAL_ID'),
'cumulative' => env('MELLAT_CUMULATIVE', false),
'cumulative' => env('MELLAT_CUMULATIVE', false),
],
/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/MellatProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function requestToken(): string
try {
$soapClient = $this->getSoapClient(self::URL_TOKEN);

if ($this->getParameters('cumulative')) {
if (config('shaparak.providers.mellat.cumulative')) {
$response = $soapClient->bpCumulativeDynamicPayRequest($sendParams);
} else {
$response = $soapClient->bpPayRequest($sendParams);
Expand Down

0 comments on commit 5761aa9

Please sign in to comment.