Code Duplication    Length = 12-13 lines in 4 locations

src/baokim/PaymentGateway.php 1 location

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

src/nganluong/PaymentGateway.php 1 location

@@ 271-282 (lines=12) @@
268
    /**
269
     * @inheritdoc
270
     */
271
    protected function getHttpClientConfig(): array
272
    {
273
        return [
274
            'transport' => 'yii\httpclient\CurlTransport',
275
            'requestConfig' => [
276
                'options' => [
277
                    CURLOPT_SSL_VERIFYPEER => false,
278
                    CURLOPT_SSL_VERIFYHOST => false
279
                ]
280
            ]
281
        ];
282
    }
283
284
    /**
285
     * @inheritdoc

src/onepay/PaymentGateway.php 1 location

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

src/vnpayment/PaymentGateway.php 1 location

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