Commit c07f60c5 by David Muzi

Use linePrice (quantity * unit price) for Apple pay share sheet

parent bd8eb20d
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
if (hasDiscount || [self.lineItems count] > 1) { if (hasDiscount || [self.lineItems count] > 1) {
NSDecimalNumber *lineItemSubtotal = [NSDecimalNumber zero]; NSDecimalNumber *lineItemSubtotal = [NSDecimalNumber zero];
for (BUYLineItem *lineItem in self.lineItems) { for (BUYLineItem *lineItem in self.lineItems) {
lineItemSubtotal = [lineItemSubtotal decimalNumberByAdding:lineItem.price]; lineItemSubtotal = [lineItemSubtotal decimalNumberByAdding:lineItem.linePrice];
} }
[summaryItems addObject:[PKPaymentSummaryItem summaryItemWithLabel:@"CART TOTAL" amount:lineItemSubtotal]]; [summaryItems addObject:[PKPaymentSummaryItem summaryItemWithLabel:@"CART TOTAL" amount:lineItemSubtotal]];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment