Skip to content

Commit

Permalink
Fix AsanPardakht Config & Work in PHP 7.4 (#43)
Browse files Browse the repository at this point in the history
* Fix AsanPardakht for php 7.4.13

* Fix AsanPardakht Config
  • Loading branch information
rayansys committed Jan 24, 2021
1 parent 676c453 commit 5082b1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
*/
'drivers' => [
'asanpardakht' => [
'apiPurchaseUrl' => 'https://services.asanpardakht.net/paygate/merchantservices.asmx?wsdl',
'apiPurchaseUrl' => 'https://ipgsoap.asanpardakht.ir/paygate/merchantservices.asmx?wsdl',
'apiPaymentUrl' => 'https://asan.shaparak.ir',
'apiVerificationUrl' => 'https://services.asanpardakht.net/paygate/merchantservices.asmx?wsdl',
'apiUtilsUrl' => 'https://services.asanpardakht.net/paygate/internalutils.asmx?wsdl',
'apiVerificationUrl' => 'https://ipgsoap.asanpardakht.ir/paygate/merchantservices.asmx?wsdl',
'apiUtilsUrl' => 'https://ipgsoap.asanpardakht.ir/paygate/internalutils.asmx?wsdl',
'key' => '',
'iv' => '',
'username' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Asanpardakht/Asanpardakht.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function purchase()
}

$result = $result->RequestOperationResult;
if ($result{0} != '0') {
if ($result[0] != '0') {
$message = "خطای شماره " . $result . " رخ داده است.";
throw new PurchaseFailedException($message);
}
Expand Down

0 comments on commit 5082b1e

Please sign in to comment.