We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 367df77 + 763960b commit 822c5c0Copy full SHA for 822c5c0
config/larapay.php
@@ -48,7 +48,9 @@
48
*/
49
'parsian' => [
50
'pin' => env('PARSIAN_PIN', ''),
51
- ],
+ 'timeout' => env('PARSIAN_TIMEOUT',15)
52
+
53
+ ],
54
/*
55
|--------------------------------------------------------------------------
56
| Pasargad gateway configuration
@@ -132,5 +134,5 @@
132
134
]
133
135
),
136
- ]
137
138
];
src/Adapter/Parsian.php
@@ -25,6 +25,12 @@ class Parsian extends AdapterAbstract implements AdapterInterface
25
protected $requestType = '';
26
27
protected $soapOptions = array('soap_version'=>'SOAP_1_1','cache_wsdl'=>WSDL_CACHE_NONE ,'encoding'=>'UTF-8');
28
29
30
+ public function init() {
31
+ ini_set("default_socket_timeout", config('larapay.parsian.timeout'));
32
33
+ }
34
/**
35
* @return array
36
* @throws Exception
0 commit comments