PayboxByVerifone / Magento-2.0.x-2.2.x

Paybox by Verifone integration for Magento 2.0.x to 2.2.x
Apache License 2.0
7 stars 8 forks source link

Corporate proxy #28

Open dferdoille opened 5 years ago

dferdoille commented 5 years ago

Hello,

When I use this module behind a corporate proxy, I get on the redirection to paybox : Unable to read response, or response is empty.

If I add a proxy in Model/Paybox.php like :

$clt = new \Magento\Framework\HTTP\ZendClient(
            $url,
            [
            'maxredirects' => 0,
            'useragent' => 'Magento Verifone e-commerce module',
            'timeout' => 5,
            'proxy' => 'http://proxy_host:proxy_port'
            ]
        );

The redirection is ok.

Is it possible to upgrade this module to manage proxies, as the core Magento Paypal module which makes it possible thanks to a configuration like payment/payflow_advanced/proxy_host : cf. https://github.com/magento/magento2/blob/2.2.9/app/code/Magento/Paypal/Model/Payflow/Service/Gateway.php#L70

Is it possible to manage it differently or would the corresponding pull request interest you?

Thanks !

David