| Current Path : /var/www/www.indacotrentino.com/www/vendor/stripe/module-payments/Plugin/Multishipping/ |
| Current File : /var/www/www.indacotrentino.com/www/vendor/stripe/module-payments/Plugin/Multishipping/Helper.php |
<?php
namespace StripeIntegration\Payments\Plugin\Multishipping;
class Helper
{
private $config;
private $helper;
public function __construct(
\StripeIntegration\Payments\Model\Config $config,
\StripeIntegration\Payments\Helper\Generic $helper
) {
$this->config = $config;
$this->helper = $helper;
}
public function aroundIsMultishippingCheckoutAvailable(\Magento\Multishipping\Helper\Data $subject, \Closure $proceed)
{
if ($this->config->isSubscriptionsEnabled() && $this->helper->hasSubscriptions())
return false;
return $proceed();
}
}