Code Duplication    Length = 12-13 lines in 4 locations

src/nganluong/PaymentGateway.php 1 location

@@ 243-254 (lines=12) @@
240
    /**
241
     * @inheritdoc
242
     */
243
    protected function getHttpClientConfig(): array
244
    {
245
        return [
246
            'transport' => 'yii\httpclient\CurlTransport',
247
            'requestConfig' => [
248
                'options' => [
249
                    CURLOPT_SSL_VERIFYPEER => false,
250
                    CURLOPT_SSL_VERIFYHOST => false
251
                ]
252
            ]
253
        ];
254
    }
255
256
    /**
257
     * @inheritdoc

src/baokim/PaymentGateway.php 1 location

@@ 178-190 (lines=13) @@
175
    /**
176
     * @inheritdoc
177
     */
178
    protected function getHttpClientConfig(): array
179
    {
180
        return [
181
            'transport' => 'yii\httpclient\CurlTransport',
182
            'requestConfig' => [
183
                'format' => 'json',
184
                'options' => [
185
                    CURLOPT_SSL_VERIFYHOST => false,
186
                    CURLOPT_SSL_VERIFYPEER => false
187
                ]
188
            ]
189
        ];
190
    }
191
192
    /**
193
     * Phương thức hổ trợ lấy thông tin merchant thông qua email business.

src/onepay/PaymentGateway.php 1 location

@@ 147-158 (lines=12) @@
144
    /**
145
     * @inheritdoc
146
     */
147
    protected function getHttpClientConfig(): array
148
    {
149
        return [
150
            'transport' => 'yii\httpclient\CurlTransport',
151
            'requestConfig' => [
152
                'options' => [
153
                    CURLOPT_SSL_VERIFYHOST => false,
154
                    CURLOPT_SSL_VERIFYPEER => false
155
                ]
156
            ]
157
        ];
158
    }
159
160
    /**
161
     * @inheritdoc

src/vnpayment/PaymentGateway.php 1 location

@@ 195-206 (lines=12) @@
192
    /**
193
     * @inheritdoc
194
     */
195
    protected function getHttpClientConfig(): array
196
    {
197
        return [
198
            'transport' => 'yii\httpclient\CurlTransport',
199
            'requestConfig' => [
200
                'options' => [
201
                    CURLOPT_SSL_VERIFYHOST => false,
202
                    CURLOPT_SSL_VERIFYPEER => false
203
                ]
204
            ]
205
        ];
206
    }
207
}
208