createTaxDetector example

$shippingMethod,
            ShippingLocation::createFromAddress($shipping),
            $customer,
            new CashRoundingConfig(2, 0.01, true),
            new CashRoundingConfig(2, 0.01, true),
            []
        );
    }

    public static function createGrossPriceDetector(): TaxDetector
    {
        return (new self())->createTaxDetector(true, false);
    }

    public static function createNetPriceDetector(): TaxDetector
    {
        return (new self())->createTaxDetector(false, false);
    }

    public static function createNetDeliveryDetector(): TaxDetector
    {
        return (new self())->createTaxDetector(false, true);
    }

    
Home | Imprint | This part of the site doesn't use cookies.