Code Duplication    Length = 12-13 lines in 4 locations

src/nganluong/PaymentGateway.php 1 location

@@ 156-167 (lines=12) @@
153
    /**
154
     * @inheritdoc
155
     */
156
    protected function getHttpClientConfig(): array
157
    {
158
        return [
159
            'transport' => 'yii\httpclient\CurlTransport',
160
            'requestConfig' => [
161
                'options' => [
162
                    CURLOPT_SSL_VERIFYPEER => false,
163
                    CURLOPT_SSL_VERIFYHOST => false
164
                ]
165
            ]
166
        ];
167
    }
168
169
    /**
170
     * @inheritdoc

src/onepay/PaymentGateway.php 1 location

@@ 208-220 (lines=13) @@
205
    /**
206
     * @inheritdoc
207
     */
208
    protected function getHttpClientConfig(): array
209
    {
210
        return [
211
            'class' => HttpClient::class,
212
            'transport' => 'yii\httpclient\CurlTransport',
213
            'requestConfig' => [
214
                'options' => [
215
                    CURLOPT_SSL_VERIFYHOST => false,
216
                    CURLOPT_SSL_VERIFYPEER => false
217
                ]
218
            ]
219
        ];
220
    }
221
222
    /**
223
     * @return ResponseData|DataInterface

src/vnpayment/PaymentGateway.php 1 location

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

src/baokim/PaymentGateway.php 1 location

@@ 202-214 (lines=13) @@
199
    /**
200
     * @inheritdoc
201
     */
202
    protected function getHttpClientConfig(): array
203
    {
204
        return [
205
            'transport' => 'yii\httpclient\CurlTransport',
206
            'requestConfig' => [
207
                'format' => 'json',
208
                'options' => [
209
                    CURLOPT_SSL_VERIFYHOST => false,
210
                    CURLOPT_SSL_VERIFYPEER => false
211
                ]
212
            ]
213
        ];
214
    }
215
216
    /**
217
     * Phương thức hổ trợ lấy thông tin merchant thông qua email business.