|
2 | 2 |
|
3 | 3 | return [ |
4 | 4 |
|
5 | | - /* |
6 | | - |-------------------------------------------------------------------------- |
7 | | - | Tartan e-payment component`s operation mode |
8 | | - |-------------------------------------------------------------------------- |
9 | | - | |
10 | | - | *** very important config *** |
11 | | - | please do not change it if you don't know what BankTest is |
12 | | - | |
13 | | - | production: component operates with real payments gateways |
14 | | - | development: component operates with simulated "Bank Test" (banktest.ir) gateways |
15 | | - | |
16 | | - */ |
17 | | - 'mode' => env('LARAPAY_MODE', 'production'), |
| 5 | + /* |
| 6 | + |-------------------------------------------------------------------------- |
| 7 | + | Tartan e-payment component`s operation mode |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | |
| 10 | + | *** very important config *** |
| 11 | + | please do not change it if you don't know what BankTest is |
| 12 | + | |
| 13 | + | production: component operates with real payments gateways |
| 14 | + | development: component operates with simulated "Bank Test" (banktest.ir) gateways |
| 15 | + | |
| 16 | + */ |
| 17 | + 'mode' => env('LARAPAY_MODE', 'production'), |
18 | 18 |
|
19 | | - /* |
20 | | - |-------------------------------------------------------------------------- |
21 | | - | ready to serve gateways |
22 | | - |-------------------------------------------------------------------------- |
23 | | - | |
24 | | - | specifies ready to serve gateways. |
25 | | - | gateway characters are case sensitive and should be exactly same as their folder name. |
26 | | - | eg, "Jahanpay" is correct not "JahanPay" or "jahanpay" |
27 | | - | the gateways list is comma separated |
28 | | - | |
29 | | - */ |
30 | | - 'gateways' => env('LARAPAY_GATES', 'Mellat,Saman,Pasargad'), |
| 19 | + /* |
| 20 | + |-------------------------------------------------------------------------- |
| 21 | + | ready to serve gateways |
| 22 | + |-------------------------------------------------------------------------- |
| 23 | + | |
| 24 | + | specifies ready to serve gateways. |
| 25 | + | gateway characters are case sensitive and should be exactly same as their folder name. |
| 26 | + | eg, "Jahanpay" is correct not "JahanPay" or "jahanpay" |
| 27 | + | the gateways list is comma separated |
| 28 | + | |
| 29 | + */ |
| 30 | + 'gateways' => env('LARAPAY_GATES', 'Mellat,Saman,Pasargad'), |
31 | 31 |
|
32 | | - /* |
33 | | - |-------------------------------------------------------------------------- |
34 | | - | Mellat gateway configuration |
35 | | - |-------------------------------------------------------------------------- |
36 | | - */ |
37 | | - 'mellat' => [ |
38 | | - 'username' => env('MELLAT_USERNAME', ''), |
39 | | - 'password' => env('MELLAT_PASSWORD',''), |
40 | | - 'terminal_id' => env('MELLAT_TERMINAL_ID', ''), |
41 | | - 'callback_url' => env('MELLAT_CALLBACK_URL', '') |
42 | | - ], |
| 32 | + /* |
| 33 | + |-------------------------------------------------------------------------- |
| 34 | + | Mellat gateway configuration |
| 35 | + |-------------------------------------------------------------------------- |
| 36 | + */ |
| 37 | + 'mellat' => [ |
| 38 | + 'username' => env('MELLAT_USERNAME', ''), |
| 39 | + 'password' => env('MELLAT_PASSWORD', ''), |
| 40 | + 'terminal_id' => env('MELLAT_TERMINAL_ID', ''), |
| 41 | + ], |
43 | 42 |
|
44 | | - /* |
45 | | - |-------------------------------------------------------------------------- |
46 | | - | Parsian gateway configuration |
47 | | - |-------------------------------------------------------------------------- |
48 | | - */ |
49 | | - 'parsian' => [ |
50 | | - 'pin' => env('PARSIAN_PIN', ''), |
51 | | - 'timeout' => env('PARSIAN_TIMEOUT',15) |
| 43 | + /* |
| 44 | + |-------------------------------------------------------------------------- |
| 45 | + | Parsian gateway configuration |
| 46 | + |-------------------------------------------------------------------------- |
| 47 | + */ |
| 48 | + 'parsian' => [ |
| 49 | + 'pin' => env('PARSIAN_PIN', ''), |
| 50 | + 'timeout' => env('PARSIAN_TIMEOUT', 15), |
52 | 51 |
|
53 | 52 | ], |
54 | | - /* |
55 | | - |-------------------------------------------------------------------------- |
56 | | - | Pasargad gateway configuration |
57 | | - |-------------------------------------------------------------------------- |
58 | | - */ |
59 | | - 'pasargad' => [ |
60 | | - 'terminalId' => env('PASARGAD_TERMINAL_ID', ''), |
61 | | - 'merchantId' => env('PASARGAD_MERCHANT_ID', ''), |
62 | | - 'certificate_path' => storage_path(env('PASARGAD_CERT_PATH', 'payment/pasargad/certificate.xml')), |
63 | | - 'callback_url' => env('PASARGAD_CALLBACK_URL', '') |
64 | | - ], |
| 53 | + /* |
| 54 | + |-------------------------------------------------------------------------- |
| 55 | + | Pasargad gateway configuration |
| 56 | + |-------------------------------------------------------------------------- |
| 57 | + */ |
| 58 | + 'pasargad' => [ |
| 59 | + 'terminalId' => env('PASARGAD_TERMINAL_ID', ''), |
| 60 | + 'merchantId' => env('PASARGAD_MERCHANT_ID', ''), |
| 61 | + 'certificate_path' => storage_path(env('PASARGAD_CERT_PATH', 'payment/pasargad/certificate.xml')), |
| 62 | + ], |
65 | 63 |
|
66 | | - /* |
67 | | - |-------------------------------------------------------------------------- |
68 | | - | Sadad gateway configuration |
69 | | - |-------------------------------------------------------------------------- |
70 | | - */ |
71 | | - 'sadad' => [ |
72 | | - 'merchant' => env('SADAD_MERCHANT', ''), |
73 | | - 'transaction_key' => env('SADAD_TRANS_KEY', ''), |
74 | | - 'terminal_id' => env('SADAD_TERMINAL_ID', ''), |
75 | | - 'callback_url' => env('SADAD_CALLBACK_URL', ''), |
76 | | - ], |
| 64 | + /* |
| 65 | + |-------------------------------------------------------------------------- |
| 66 | + | Sadad gateway configuration |
| 67 | + |-------------------------------------------------------------------------- |
| 68 | + */ |
| 69 | + 'sadad' => [ |
| 70 | + 'merchant' => env('SADAD_MERCHANT', ''), |
| 71 | + 'transaction_key' => env('SADAD_TRANS_KEY', ''), |
| 72 | + 'terminal_id' => env('SADAD_TERMINAL_ID', ''), |
| 73 | + ], |
77 | 74 |
|
78 | | - 'saderat' => [ |
79 | | - 'MID' => env('SADERAT_MID', ''), |
80 | | - 'TID' => env('SADERAT_TID', ''), |
81 | | - 'public_key_path' => storage_path(env('SADERAT_CERT_PATH', 'payment/saderat/public.key')), |
82 | | - 'private_key_path' => storage_path(env('SADERAT_CERT_PATH', 'payment/saderat/private.key')), |
83 | | - ], |
| 75 | + /* |
| 76 | + |-------------------------------------------------------------------------- |
| 77 | + | Saderat - Mabna Card Aria gateway configuration |
| 78 | + |-------------------------------------------------------------------------- |
| 79 | + */ |
| 80 | + 'saderat' => [ |
| 81 | + 'MID' => env('SADERAT_MID', ''), |
| 82 | + 'TID' => env('SADERAT_TID', ''), |
| 83 | + 'public_key_path' => storage_path(env('SADERAT_CERT_PATH', 'payment/saderat/public.key')), |
| 84 | + 'private_key_path' => storage_path(env('SADERAT_CERT_PATH', 'payment/saderat/private.key')), |
| 85 | + ], |
84 | 86 |
|
85 | | - /* |
86 | | - |-------------------------------------------------------------------------- |
87 | | - | Saman gateway configuration |
88 | | - |-------------------------------------------------------------------------- |
89 | | - */ |
90 | | - 'saman' => [ |
91 | | - 'merchant_id' => env('SAMAN_MERCHANT_ID', ''), |
92 | | - 'merchant_pass' => env('SAMAN_MERCHANT_PASS', ''), |
93 | | - ], |
| 87 | + /* |
| 88 | + |-------------------------------------------------------------------------- |
| 89 | + | Saman gateway configuration |
| 90 | + |-------------------------------------------------------------------------- |
| 91 | + */ |
| 92 | + 'saman' => [ |
| 93 | + 'merchant_id' => env('SAMAN_MERCHANT_ID', ''), |
| 94 | + 'merchant_pass' => env('SAMAN_MERCHANT_PASS', ''), |
| 95 | + ], |
94 | 96 |
|
95 | | - /* |
96 | | - |-------------------------------------------------------------------------- |
97 | | - | Zarinpal gateway configuration |
98 | | - |-------------------------------------------------------------------------- |
99 | | - | |
100 | | - | types: acceptable values --- zarin-gate or normal |
101 | | - | server: acceptable values --- germany or iran or test |
102 | | - | |
103 | | - */ |
104 | | - 'zarinpal' => [ |
105 | | - 'merchant_id' => env('ZARINPAL_MERCHANT_ID', ''), |
106 | | - 'type' => env('ZARINPAL_TYPE', 'zarin-gate'), |
107 | | - 'callback_url' => env('ZARINPAL_CALLBACK_URL', ''), |
108 | | - 'server' => env('ZARINPAL_SERVER', 'germany'), |
109 | | - 'email' => env('ZARINPAL_EMAIL', ''), |
110 | | - 'mobile' => env('ZARINPAL_MOBILE', '09xxxxxxxxx'), |
111 | | - 'description' => env('ZARINPAL_MOBILE', 'powered-by-TartanPayment'), |
112 | | - ], |
| 97 | + /* |
| 98 | + |-------------------------------------------------------------------------- |
| 99 | + | Zarinpal gateway configuration |
| 100 | + |-------------------------------------------------------------------------- |
| 101 | + | |
| 102 | + | types: acceptable values --- zarin-gate or normal |
| 103 | + | server: acceptable values --- germany or iran or test |
| 104 | + | |
| 105 | + */ |
| 106 | + 'zarinpal' => [ |
| 107 | + 'merchant_id' => env('ZARINPAL_MERCHANT_ID', ''), |
| 108 | + 'type' => env('ZARINPAL_TYPE', 'zarin-gate'), |
| 109 | + 'callback_url' => env('ZARINPAL_CALLBACK_URL', ''), |
| 110 | + 'server' => env('ZARINPAL_SERVER', 'germany'), |
| 111 | + 'email' => env('ZARINPAL_EMAIL', ''), |
| 112 | + 'mobile' => env('ZARINPAL_MOBILE', '09xxxxxxxxx'), |
| 113 | + 'description' => env('ZARINPAL_MOBILE', 'powered-by-TartanPayment'), |
| 114 | + ], |
113 | 115 |
|
114 | | - 'pay_ir' => [ |
115 | | - 'api' => env('PAY_IR_API_KEY', ''), |
| 116 | + /* |
| 117 | + |-------------------------------------------------------------------------- |
| 118 | + | Pay.ir gateway configuration |
| 119 | + |-------------------------------------------------------------------------- |
| 120 | + */ |
| 121 | + 'pay_ir' => [ |
| 122 | + 'api' => env('PAY_IR_API_KEY', ''), |
116 | 123 | ], |
117 | 124 | /* |
118 | 125 | |-------------------------------------------------------------------------- |
|
123 | 130 | | options: soapClient Options |
124 | 131 | | |
125 | 132 | */ |
126 | | - 'soap' => [ |
| 133 | + 'soap' => [ |
127 | 134 | 'useOptions' => env('SOAP_HAS_OPTIONS', false), |
128 | | - 'options' => [ |
129 | | - 'proxy_host' => env('SOAP_PROXY_HOST', ''), |
130 | | - 'proxy_port' => env('SOAP_PROXY_PORT', ''), |
| 135 | + 'options' => [ |
| 136 | + 'proxy_host' => env('SOAP_PROXY_HOST', ''), |
| 137 | + 'proxy_port' => env('SOAP_PROXY_PORT', ''), |
131 | 138 | 'stream_context' => stream_context_create( |
132 | 139 | [ |
133 | 140 | 'ssl' => [ |
134 | | - 'verify_peer' => false, |
| 141 | + 'verify_peer' => false, |
135 | 142 | 'verify_peer_name' => false, |
136 | 143 | ], |
137 | 144 | ] |
138 | 145 | ), |
139 | | - ] |
| 146 | + ], |
140 | 147 | ], |
141 | 148 | ]; |
0 commit comments