Closed eufandem closed 4 years ago
It seems like the wrong totals are deriving from the checkout token object.
For some reason the live.line_items.line_total
prices for the items are different from the live.line_items.price
prices. The live object's total reflects the prices from the live.line_items.line_total
.
@robbieaverill @ScopeyNZ is live.line_items.price
deprecated? I'm not sure why the two are different prices if in this scenario there's only 1 quantity for each of the two items being checked out.
Is it adding a variant price? I think the price
on the line_item response there is the base price for the product, without any variant price deltas added.
Looking at the products, I'm guessing that first line item (complexion cream) has the "500ml" variant, which will add $57 to the line item total.
@ScopeyNZ I'm also noticing some discrepancies within the order receipt object.
Here a variant of the Lip Fantastic product is checked out, but yet the total only shows 34.50 within the order receipt object while the subtotal is 59.
Fixed in #95, nice work @john-raymon