Skip to content

Commit 74ab62f

Browse files
author
Aboozar Ghaffari
authored
Merge pull request #8 from miladkian/patch-2
change banktest zarinpal wsdl. fix verify method
2 parents 0afb7ee + e46fbdc commit 74ab62f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Adapter/Zarinpal.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Zarinpal extends AdapterAbstract implements AdapterInterface
1919
protected $zarinEndPoint = 'https://www.zarinpal.com/pg/StartPay/{authority}/ZarinGate';
2020
protected $mobileEndPoint = 'https://www.zarinpal.com/pg/StartPay/{authority}/MobileGate';
2121

22-
protected $testWSDL = 'https://banktest.ir/gateway/zarinpal/ws?wsdl';
23-
protected $testEndPoint = 'https://banktest.ir/gateway/zarinpal/gate/{authority}';
22+
protected $testWSDL = 'http://banktest.ir/gateway/zarinpal/ws?wsdl';
23+
protected $testEndPoint = 'http://banktest.ir/gateway/zarinpal/gate/{authority}';
2424

2525
public $reverseSupport = false;
2626

@@ -107,14 +107,13 @@ protected function verifyTransaction(): bool
107107

108108
$this->checkRequiredParameters([
109109
'merchant_id',
110-
'amount',
111110
'Authority',
112111
]);
113112

114113
$sendParams = [
115114
'MerchantID' => $this->merchant_id,
116115
'Authority' => $this->Authority,
117-
'Amount' => intval($this->amount),
116+
'Amount' => intval($this->transaction->amount),
118117
];
119118

120119
try {

0 commit comments

Comments
 (0)