The summary items are the elements of the payment sheet that specify the price of the item the user is purchasing, the shipping cost, taxes, discounts, and the total price. Each summary item has a label, such as SHIPPING
or TAX
. The last item represents the total price with a label, such as PAY ACME
. The label of this item must identify your company so that the customer can match the purchase to their payment-card statement. You specify the summary items of a payment request by assigning an array of PKPaymentSummaryItem
instances to the paymentSummaryItems
property of the payment request. Each summary item has an amount
property that represents the cost of the item.
This listing shows how to define the summary items of a payment request:
// client_app/merchantapp/ProductCard.m @property Product* product; @property PKPaymentRequest* payment_request; @property PKShippingMethod* selected_shipping_method; ... // tally the summary items' cost and the grand total...