Reader small image

You're reading from  Apple Pay Essentials

Product typeBook
Published inFeb 2016
Reading LevelBeginner
Publisher
ISBN-139781785886386
Edition1st Edition
Languages
Right arrow
Author (1)
Ernest Bruce
Ernest Bruce
author image
Ernest Bruce

Ernest Bruce is an accomplished technical writer and software engineer. He has worked for 13 years at Apple, Inc., where he held the position of Senior Technical Writer writing developer documentation. At Apple, Ernest specialized in writing documentation for the Xcode toolset, focusing on the Xcode user guide, and Xcode overview, as well as unit testing documentation and sample code. He also worked extensively on API documentation for the OS X and iOS platforms. Ernest helped design and develop the Xcode help articles that aid developers in getting around the user interface of the Xcode app. Before his years at Apple, Ernest worked as a programmer for Ping, Inc., where he helped manage the manufacturing processes using APL (A Programming Language). Ernest also has extensive experience in customer service, which has been instrumental to him developing content that readers find clear and easy to read, and that makes complex concepts more approachable. Ernest is the head of Nerd Brawn, LLC, a software development company that focuses on developing platforms that help people learn about their environment and each other in innovative ways. The company is also working on new techniques to present content on desktop computers, tablets, and mobile phones.
Read more about Ernest Bruce

Right arrow

Specifying summary items


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...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Apple Pay Essentials
Published in: Feb 2016Publisher: ISBN-13: 9781785886386

Author (1)

author image
Ernest Bruce

Ernest Bruce is an accomplished technical writer and software engineer. He has worked for 13 years at Apple, Inc., where he held the position of Senior Technical Writer writing developer documentation. At Apple, Ernest specialized in writing documentation for the Xcode toolset, focusing on the Xcode user guide, and Xcode overview, as well as unit testing documentation and sample code. He also worked extensively on API documentation for the OS X and iOS platforms. Ernest helped design and develop the Xcode help articles that aid developers in getting around the user interface of the Xcode app. Before his years at Apple, Ernest worked as a programmer for Ping, Inc., where he helped manage the manufacturing processes using APL (A Programming Language). Ernest also has extensive experience in customer service, which has been instrumental to him developing content that readers find clear and easy to read, and that makes complex concepts more approachable. Ernest is the head of Nerd Brawn, LLC, a software development company that focuses on developing platforms that help people learn about their environment and each other in innovative ways. The company is also working on new techniques to present content on desktop computers, tablets, and mobile phones.
Read more about Ernest Bruce