Skip to content

Commit e6ba673

Browse files
committed
fixed banktest webservice in Parsian gateway
1 parent fd973ef commit e6ba673

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/Adapter/Parsian.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ class Parsian extends AdapterAbstract implements AdapterInterface
1717
{
1818
protected $WSDLSale = 'https://pec.shaparak.ir/NewIPGServices/Sale/SaleService.asmx?WSDL';
1919
protected $WSDLConfirm = 'https://pec.shaparak.ir/NewIPGServices/Confirm/ConfirmService.asmx?WSDL';
20-
protected $WSDLReversal = 'https://pec.shaparak.ir/NewIPGServices/Reverse/ReversalService.asmx';
21-
protected $WSDLMultiplex = 'https://pec.shaparak.ir/NewIPGServices/MultiplexedSale/OnlineMultiplexedSalePaymentService.asmx?wsdl';
20+
protected $WSDLReversal = 'https://pec.shaparak.ir/NewIPGServices/Reverse/ReversalService.asmx?WSDL';
21+
protected $WSDLMultiplex = 'https://pec.shaparak.ir/NewIPGServices/MultiplexedSale/OnlineMultiplexedSalePaymentService.asmx?WSDL';
2222

2323
protected $endPoint = 'https://pec.shaparak.ir/NewIPG/';
2424

25-
protected $testWSDLSale = 'http://banktest.ir/gateway/parsian-sale/ws?wsdl';
26-
protected $testWSDLConfirm = 'http://banktest.ir/gateway/parsian-confirm/ws?wsdl';
27-
protected $testWSDLReversal = 'http://banktest.ir/gateway/parsian-reverse/ws?wsdl';
28-
protected $testWSDLMultiplex = 'http://banktest.ir/parsian/NewIPGServices/MultiplexedSale/OnlineMultiplexedSalePaymentService.asmx?wsdl';
25+
protected $testWSDLSale = 'http://banktest.ir/gateway/Parsian/NewIPGServices/Sale/SaleService.asmx?WSDL';
26+
protected $testWSDLConfirm = 'http://banktest.ir/gateway/Parsian/NewIPGServices/Confirm/ConfirmService.asmx?WSDL';
27+
protected $testWSDLReversal = 'http://banktest.ir/gateway/Parsian/NewIPGServices/Reverse/ReversalService.asmx?WSDL';
28+
protected $testWSDLMultiplex = 'http://banktest.ir/gateway/Parsian/NewIPGServices/MultiplexedSale/OnlineMultiplexedSalePaymentService.asmx?WSDL';
2929

30-
protected $testEndPoint = 'http://banktest.ir/gateway/parsian/gate';
30+
protected $testEndPoint = 'http://banktest.ir/gateway/Parsian/NewIPGq';
3131

3232
protected $reverseSupport = true;
3333

@@ -127,6 +127,8 @@ private function requestTokenWithSharing($sendParams)
127127
if (!isset($this->sharing['type']) || !isset($this->sharing['data'])) {
128128
throw new Exception('larapay::larapay.invalid_sharing_data');
129129
}
130+
131+
130132
if ($this->sharing['type'] == Sharing::DYNAMIC) {
131133
// dynamic sharing
132134
$method = 'MultiplexedSaleWithIBANPaymentRequest';
@@ -151,7 +153,7 @@ private function requestTokenWithSharing($sendParams)
151153
}
152154

153155
try {
154-
$this->requestType = 'request';
156+
$this->requestType = 'multiplex';
155157
$soapClient = $this->getSoapClient();
156158

157159
XLog::debug("{$method} call", $sendParams);
@@ -321,7 +323,6 @@ public function getGatewayReferenceId(): string
321323

322324
protected function getWSDL(): string
323325
{
324-
325326
$type = $this->requestType;
326327

327328
switch ($type) {

0 commit comments

Comments
 (0)