@@ -24,13 +24,15 @@ class Parsian extends AdapterAbstract implements AdapterInterface
24
24
25
25
protected $ requestType = '' ;
26
26
27
- protected $ soapOptions = array ('soap_version ' => 'SOAP_1_1 ' ,'cache_wsdl ' => WSDL_CACHE_NONE , 'encoding ' => 'UTF-8 ' );
27
+ protected $ soapOptions = array ('soap_version ' => 'SOAP_1_1 ' , 'cache_wsdl ' => WSDL_CACHE_NONE , 'encoding ' => 'UTF-8 ' );
28
28
29
29
30
- public function init () {
30
+ public function init ()
31
+ {
31
32
ini_set ("default_socket_timeout " , config ('larapay.parsian.timeout ' ));
32
33
33
34
}
35
+
34
36
/**
35
37
* @return array
36
38
* @throws Exception
@@ -50,19 +52,18 @@ protected function requestToken()
50
52
51
53
$ sendParams = [
52
54
53
- 'LoginAccount ' => $ this ->pin ,
54
- 'Amount ' => intval ($ this ->amount ),
55
- 'OrderId ' => intval ($ this ->order_id ),
56
- 'CallBackUrl ' => $ this ->redirect_url ,
55
+ 'LoginAccount ' => $ this ->pin ,
56
+ 'Amount ' => intval ($ this ->amount ),
57
+ 'OrderId ' => intval ($ this ->order_id ),
58
+ 'CallBackUrl ' => $ this ->redirect_url ,
59
+ 'AdditionalData ' => $ this ->additional_data ? $ this ->additional_data : '' ,
60
+
57
61
// 'authority' => 0, //default authority
58
62
// 'status' => 1, //default status
59
63
60
64
];
61
65
62
66
63
-
64
-
65
-
66
67
try {
67
68
$ this ->requestType = 'request ' ;
68
69
$ soapClient = $ this ->getSoapClient ();
@@ -95,8 +96,8 @@ protected function requestToken()
95
96
*/
96
97
protected function generateForm ()
97
98
{
98
- $ authority = $ this ->requestToken ();
99
99
100
+ $ authority = $ this ->requestToken ();
100
101
return view ('larapay::parsian-form ' , [
101
102
'endPoint ' => $ this ->getEndPoint (),
102
103
'refId ' => $ authority ,
0 commit comments