Skip to content

Commit 5761aa9

Browse files
committed
fixed Mellat cumulative flag checking
1 parent 50d4b7a commit 5761aa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/shaparak.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
'username' => env('MELLAT_USERNAME'),
7878
'password' => env('MELLAT_PASSWORD'),
7979
'terminal_id' => env('MELLAT_TERMINAL_ID'),
80-
'cumulative' => env('MELLAT_CUMULATIVE', false),
80+
'cumulative' => env('MELLAT_CUMULATIVE', false),
8181
],
8282
/*
8383
|--------------------------------------------------------------------------

src/Provider/MellatProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function requestToken(): string
5151
try {
5252
$soapClient = $this->getSoapClient(self::URL_TOKEN);
5353

54-
if ($this->getParameters('cumulative')) {
54+
if (config('shaparak.providers.mellat.cumulative')) {
5555
$response = $soapClient->bpCumulativeDynamicPayRequest($sendParams);
5656
} else {
5757
$response = $soapClient->bpPayRequest($sendParams);

0 commit comments

Comments
 (0)