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:
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
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
Postprocess phase: In this, the user app informs the user about the status of the transaction and dismisses the payment sheet
This...