Search icon
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

Processing orders from clients


The example order management system server web app processes orders in a single function, payment (described in Chapter 4, Payment Processing Workflow), which clients execute through an HTTP POST request to the http://red:12345/payment URI.

First, the function attempts to charge the customer card. If the charge is successful, the function adds a record to the Order collection using the order information that the client provided. When done, the function returns information about the payment transaction and the new order (if it was created) to the client.

Refer to the Process Phase section in Chapter 4, Payment Processing Workflow, for details about the implementation of the payment function.

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}