File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { ProductVariant } from "@/interfaces/PrintifyTypes" ;
2
2
import { getShippingCostInCents } from "../printify/shipping/getShippingCostsInCents" ;
3
3
import { CountryCode } from "../stripe/createCheckoutSession" ;
4
+ import { UK_VAT_MULTIPLIER } from "@/app/data/consts" ;
4
5
5
6
const MARK_UP_IN_USD = 5 ;
6
7
@@ -24,7 +25,10 @@ export async function generateUnroundedPriceInUsd({
24
25
const totalCostInCentsWithoutTax =
25
26
selectedVariant . cost + printifyShippingCostInCents ;
26
27
27
- const totalCostInUsd = totalCostInCentsWithoutTax / 100 ; // we don't need to pay VAT until we make 85k
28
+ const totalCostInCentsWithVAT =
29
+ totalCostInCentsWithoutTax * UK_VAT_MULTIPLIER ;
30
+
31
+ const totalCostInUsd = totalCostInCentsWithVAT / 100 ; // we don't need to pay VAT until we make 85k
28
32
29
33
const unroundedPriceInUsd = totalCostInUsd + MARK_UP_IN_USD ;
30
34
You can’t perform that action at this time.
0 commit comments