Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Apple Pay Essentials

You're reading from  Apple Pay Essentials

Product type Book
Published in Feb 2016
Publisher
ISBN-13 9781785886386
Pages 118 pages
Edition 1st Edition
Languages
Author (1):
Ernest Bruce Ernest Bruce
Profile icon Ernest Bruce

The preprocess phase


In the Preprocess phase, the user app uses the payment information that the payment sheet generates (in the form of a PKPayment object) as a result of the user's authorization. The app sends this information to the payment gateway and obtains a charge token (this item may be identified using different names, such as the registration ID, depending on the payment gateway; the order processing web app uses the charge token to charge the user's card). The app then packages the charge token along with pertinent information about the order (such as billing information, shipping information, shipping method, and so on) and sends it to the order processing web app on your server.

The following three sections describe the steps of the Preprocess phase.

The merchant app receives the payment token

When the user authorizes the payment request, the payment sheet calls the paymentAuthorizationViewController:didAuthorizePayment:completion: delegate method (which is part of the PKPaymentAuthorizationViewControllerDelegate...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}