Your IP : 216.73.217.95


Current Path : /var/www/www.indacotrentino.com/www/vendor/stripe/module-payments/Plugin/Multishipping/
Upload File :
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();
    }
}