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

Chapter 4. Payment Processing Workflow

After the user authorizes the payment request, the user app, the payment gateway, and the order processing web app team up to securely deliver payment information to the issuing bank to transfer the funds from the user's account to the acquiring bank and to inform the user of the transaction status (that is, whether it is approved or declined).

The payment processing workflow is made up of three phases:

  1. Preprocess phase: In this phase, the app gets a charge token from the payment gateway and sends the order information (including the charge token) to the order processing server

  2. Process phase: In this phase, the order processing web app (running on your server) charges the user's card through the payment gateway, updates the order and inventory data if the charge is successful, and sends the transaction status to the user app

  3. Postprocess phase: In this, the user app informs the user about the status of the transaction and dismisses the payment sheet

This...

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}